Class TerminateToolException

All Implemented Interfaces:
Serializable

@Internal public class TerminateToolException extends RuntimeException
Exception to terminate the execution of a command line tool.

The exception should be thrown to indicate that the VM should be terminated with the specified error code, instead of just calling System.exit(int).

The return code convention is to return:
0 in case of graceful termination
-1 in case of runtime errors, such as IOException
1 in case of invalid parameters.

Note: Do not use this class, internal use only!

See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • code

      private final int code
    • message

      private final String message
  • Constructor Details

    • TerminateToolException

      public TerminateToolException(int code, String message, Throwable t)
    • TerminateToolException

      public TerminateToolException(int code, String message)
    • TerminateToolException

      public TerminateToolException(int code)
  • Method Details