Package net.sf.saxon
Class CommandExitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.saxon.CommandExitException
- All Implemented Interfaces:
Serializable
An exception thrown by the
Transform and Query
CLI classes when the command needs to exit and terminate the process immediately.- Since:
- 12.10
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStandard Exception constructor, defaultscodeto1CommandExitException(int code) CommandExitException(int code, String message) CommandExitException(String message) Standard Exception constructor, defaultscodeto1CommandExitException(String message, Throwable cause) Standard Exception constructor, defaultscodeto1CommandExitException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Standard Exception constructor, defaultscodeto1 -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandExitException
public CommandExitException()Standard Exception constructor, defaultscodeto1 -
CommandExitException
public CommandExitException(int code) - Parameters:
code- The status code that should be passed toSystem.exit(int)
-
CommandExitException
- Parameters:
code- The status code that should be passed toSystem.exit(int)message- The error message
-
CommandExitException
Standard Exception constructor, defaultscodeto1- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.
-
CommandExitException
Standard Exception constructor, defaultscodeto1- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
-
CommandExitException
public CommandExitException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Standard Exception constructor, defaultscodeto1- Parameters:
message- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()method.cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)enableSuppression- whether or not suppression is enabled or disabledwritableStackTrace- whether or not the stack trace should be writable
-
-
Method Details
-
getCode
public int getCode()- Returns:
- the status code that should be passed to
System.exit(int)
-