opennlp.tools.cmdline
Class TerminateToolException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
opennlp.tools.cmdline.TerminateToolException
- All Implemented Interfaces:
- Serializable
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:
- Serialized Form
TerminateToolException
public TerminateToolException(int code,
String message,
Throwable t)
TerminateToolException
public TerminateToolException(int code,
String message)
TerminateToolException
public TerminateToolException(int code)
getCode
public int getCode()
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.