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)
.
Note: Do not use this class, internal use only!
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
TerminateToolException
public TerminateToolException(int code)
getCode
public int getCode()
Copyright © 2010. All Rights Reserved.