com.crystaldecisions.sdk.occa.report.lib
Class ReportSDKExceptionBase
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ReportSDKException
public abstract class ReportSDKExceptionBase
- extends java.lang.Exception
- See Also:
- Serialized Form
Method Summary |
int |
errorCode()
|
<T extends java.lang.Throwable>
T |
|
findCause(java.lang.Class<T> throwable)
Digs into the cause chain to find a cause of the specified type. |
<T extends java.lang.Throwable>
boolean |
|
isCausedByA(java.lang.Class<T> throwable)
Digs into the cause chain to see if this exception was caused by the specified type of
throwable. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ReportSDKExceptionBase
public ReportSDKExceptionBase(int errorCode,
java.lang.String errorMsg)
ReportSDKExceptionBase
public ReportSDKExceptionBase(int errorCode,
java.lang.String errorMsg,
java.lang.Throwable cause)
errorCode
public int errorCode()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable
isCausedByA
public <T extends java.lang.Throwable> boolean isCausedByA(java.lang.Class<T> throwable)
- Digs into the cause chain to see if this exception was caused by the specified type of
throwable.
- Type Parameters:
T
- Type of the throwable we are looking for- Parameters:
throwable
- The Class instance for the throwable we are looking for.
- Returns:
- whether a throwable of the specified type was found in the cause chain
findCause
public <T extends java.lang.Throwable> T findCause(java.lang.Class<T> throwable)
- Digs into the cause chain to find a cause of the specified type. The most outer
cause that is an instance of the provided type is returned.
- Type Parameters:
T
- Type of the throwable that we are looking for- Parameters:
throwable
- The Class instance for the exception we are looking for.
- Returns:
- The outermost cause of the specified type.
null
if not found.