Class ExitStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.tools.ant.BuildException
org.apache.tools.ant.ExitStatusException
- All Implemented Interfaces:
Serializable
BuildException + exit status.
- Since:
- Ant 1.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExitStatusException(int status) Constructs anExitStatusException.ExitStatusException(String msg, int status) Constructs anExitStatusException.ExitStatusException(String message, int status, Location location) Construct an exit status exception with location information too -
Method Summary
Methods inherited from class BuildException
getException, getLocation, of, setLocation, toStringModifier and TypeMethodDescriptionDeprecated.Returns the file location where the error occurred.static BuildExceptionGet aBuildExceptionfor the specifiedThrowable.voidsetLocation(Location location) Sets the file location where the error occurred.toString()Returns the location of the error and the error message.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ExitStatusException
public ExitStatusException(int status) Constructs anExitStatusException.- Parameters:
status- the associated status code
-
ExitStatusException
Constructs anExitStatusException.- Parameters:
msg- the associated messagestatus- the associated status code
-
ExitStatusException
-
-
Method Details
-
getStatus
public int getStatus()Get the status code.- Returns:
int
-
Throwable.getCause()instead.