org.apache.myfaces.buildtools.maven2.plugin.builder.utils
Class BuildException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.myfaces.buildtools.maven2.plugin.builder.utils.BuildException
All Implemented Interfaces:
Serializable

public class BuildException
extends RuntimeException

An unchecked exception that can be thrown whenever something goes wrong.

An unchecked exception is useful in this particular application because we don't need to bother declaring it everywhere. Checked exceptions are fine here because there is no sensible "recovery strategy" for a build failure except terminating the build.

See Also:
Serialized Form

Constructor Summary
BuildException(String msg)
           
BuildException(String msg, Exception cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildException

public BuildException(String msg)

BuildException

public BuildException(String msg,
                      Exception cause)


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.