Package net.sf.saxon

Class CommandExitException

All Implemented Interfaces:
Serializable

public class CommandExitException extends RuntimeException
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 Details

    • CommandExitException

      public CommandExitException()
      Standard Exception constructor, defaults code to 1
    • CommandExitException

      public CommandExitException(int code)
      Parameters:
      code - The status code that should be passed to System.exit(int)
    • CommandExitException

      public CommandExitException(int code, String message)
      Parameters:
      code - The status code that should be passed to System.exit(int)
      message - The error message
    • CommandExitException

      public CommandExitException(String message)
      Standard Exception constructor, defaults code to 1
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
    • CommandExitException

      public CommandExitException(String message, Throwable cause)
      Standard Exception constructor, defaults code to 1
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
      cause - the cause (which is saved for later retrieval by the Throwable.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, defaults code to 1
      Parameters:
      message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
      enableSuppression - whether or not suppression is enabled or disabled
      writableStackTrace - 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)