Class BuildException

  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:

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


public BuildException(String msg)


public BuildException(String msg,
                      Exception cause)

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