Class NonFatalBuildException

  • All Implemented Interfaces:
    Serializable

    public class NonFatalBuildException
    extends org.apache.tools.ant.BuildException

    This exception is an extension of BuildException used to indicate a handled error as occurred. It is thrown during the execution of ant tasks to signify an error has occurred, but that the error shouldn’t cause the remainder of the ant task to fail. The RhinoManagementAntTask class will catch or re-throw NonFatalBuildException depending on the failOnError variable. If set, the NonFatalBuildException will be re-thrown as a BuildException. Otherwise it will be caught and an error message displayed.

    See Also:
    Serialized Form
    • Constructor Detail

      • NonFatalBuildException

        public NonFatalBuildException​(String message)
      • NonFatalBuildException

        public NonFatalBuildException​(String message,
                                      Throwable cause)