Class TranscriptException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--TranscriptException
- All Implemented Interfaces:
- java.io.Serializable
- public class TranscriptException
- extends java.lang.Exception
Exception thrown if error occurs while parsing a users transcript.
- See Also:
- Serialized Form
|
Constructor Summary |
TranscriptException(java.lang.String msg)
Constructs a TranscriptException with error code ERROR_SHUTDOWN. |
TranscriptException(java.lang.String msg,
int code)
Constructs a TranscriptException with a user supplied error code. |
TranscriptException(java.lang.Throwable throwable)
Constructs a TranscriptException out of a throwable object. |
|
Method Summary |
int |
getErrorCode()
Returns the error code of the exception. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ERROR_SHUTDOWN
public static final int ERROR_SHUTDOWN
- See Also:
- Constant Field Values
ERROR_CONTINUE
public static final int ERROR_CONTINUE
- See Also:
- Constant Field Values
TranscriptException
public TranscriptException(java.lang.String msg)
- Constructs a TranscriptException with error code ERROR_SHUTDOWN.
- Parameters:
msg - the exception message.
TranscriptException
public TranscriptException(java.lang.String msg,
int code)
- Constructs a TranscriptException with a user supplied error code.
- Parameters:
msg - the exception message.code - the error code (ERROR_SHUTDOWN or ERROR_CONTINUE).
TranscriptException
public TranscriptException(java.lang.Throwable throwable)
- Constructs a TranscriptException out of a throwable object. If it
is an instance of TranscriptException, the error code is extracted.
- Parameters:
throwable - A throwable object to construct the exception with.
getErrorCode
public int getErrorCode()
- Returns the error code of the exception.
- Returns:
- The error code.