public class JournalRuntimeException extends java.lang.RuntimeException implements ContainableException
This exception is an unchecked exception. It should only be thrown where checked exceptions are not possible or practical. Applications that can use the information in this exception are encouraged to catch it.
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
| Constructor and Description | 
|---|
JournalRuntimeException()
Empty constructor 
 | 
JournalRuntimeException(JournalException pJournalException)
This constructor converts a JournalException to a
 JournalRuntimeException. 
 | 
JournalRuntimeException(java.lang.String pMessage)
Construct an exception with the specified message 
 | 
JournalRuntimeException(java.lang.String pMessage,
                       java.lang.Throwable pSourceException)
Construct an exception with the specified message and source exception 
 | 
JournalRuntimeException(java.lang.Throwable pSourceException)
Construct an exception with the specified source exception 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String | 
getErrorCode()
Get property  
errorCode. | 
java.lang.Throwable | 
getSourceException()
Get property  
sourceException. | 
void | 
printStackTrace()
Prints this exception and its backtrace to the standard error
 stream. 
 | 
void | 
printStackTrace(java.io.PrintStream pStream)
Prints this exception and its backtrace to the specified print stream. 
 | 
void | 
printStackTrace(java.io.PrintWriter pWriter)
Prints this exception and its backtrace to the specified
 print writer. 
 | 
void | 
setErrorCode(java.lang.String pErrorCode)
Set property  
errorCode. | 
void | 
setSourceException(java.lang.Throwable pSourceException)
Set property  
sourceException. | 
public JournalRuntimeException()
public JournalRuntimeException(JournalException pJournalException)
pJournalException - the exception to convertpublic JournalRuntimeException(java.lang.String pMessage)
pMessage - the detail messagepublic JournalRuntimeException(java.lang.Throwable pSourceException)
pSourceException - the source exceptionpublic JournalRuntimeException(java.lang.String pMessage,
                               java.lang.Throwable pSourceException)
pMessage - the detail messagepSourceException - the source exceptionpublic void setSourceException(java.lang.Throwable pSourceException)
sourceException. This is
 the originally exception which is typically the cause of the error.pSourceException - new value to set, may be nullpublic java.lang.Throwable getSourceException()
sourceException. This is
 the originally exception which is typically the cause of the error.getSourceException in interface ContainableExceptionsourceException, may be nullpublic void setErrorCode(java.lang.String pErrorCode)
errorCode. This is the error code associated
 with the exception. This is either null or the resource bundle key of
 the associated error.pErrorCode - new value to set, may be nullpublic java.lang.String getErrorCode()
errorCode. This is the error code associated
 with the exception. This is either null or the resource bundle key of
 the associated error.errorCode, may be nullpublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream pStream)
printStackTrace in class java.lang.ThrowablepStream - PrintStream to use for outputpublic void printStackTrace(java.io.PrintWriter pWriter)
printStackTrace in class java.lang.ThrowablepWriter - PrintWriter to use for output