public class PrimaveraException extends Exception
Constructor and Description |
---|
PrimaveraException(String strMessage)
Class constructor specifying a detailed message.
|
PrimaveraException(String strMessage,
Throwable thE)
Class constructor specifying a detailed message and the original thrown exception.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getOriginalException()
Returns the original exception if this exception was thrown as a result of an original
exception.
|
StackTraceElement[] |
getStackTrace()
Provides programmatic access to the stack trace information printed by
printStackTrace().
|
static String |
getStackTrace(Throwable th)
Return stack trace string from a Throwable object
|
boolean |
isSQLExceptionThrown()
Returns true if the original exception is SQLException.
|
void |
printStackTrace()
Print the message/stack trace for the root exception, as well as this exception.
|
void |
printStackTrace(PrintStream s)
Print the message/stack trace for the root exception, as well as this exception.
|
void |
printStackTrace(PrintWriter s)
Print the message/stack trace for the root exception, as well as this exception.
|
void |
removeOriginalException()
Remove the original exception if it is not PrimaveraException.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, setStackTrace, toString
public PrimaveraException(String strMessage, Throwable thE)
strMessage
- the detailed message of this exceptionthE
- the originally thrown exceptionpublic PrimaveraException(String strMessage)
strMessage
- the message of this exceptionpublic void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
s
- PrintStream
to use for outputpublic void printStackTrace(PrintWriter s)
printStackTrace
in class Throwable
s
- PrintWriter
to use for outputpublic StackTraceElement[] getStackTrace()
getStackTrace
in class Throwable
public boolean isSQLExceptionThrown()
public Throwable getOriginalException()
public void removeOriginalException()
Copyright © 2003, 2024, Oracle and/or its affiliates.
Oracle®, Java, and MySQL are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.