Package com.identityworksllc.iiq.common
Class PairedGeneralException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- sailpoint.tools.AbstractLocalizableException
-
- sailpoint.tools.GeneralException
-
- com.identityworksllc.iiq.common.PairedGeneralException
-
- All Implemented Interfaces:
Serializable
,sailpoint.tools.Localizable
public class PairedGeneralException extends sailpoint.tools.GeneralException
This exception is to be used whenever an exception is caught inside of a catch block.It will display details of both exceptions on printStackTrace and other methods.
This particular version extends GeneralException in order to allow throwing via Sailpoint’s API. All methods are delegated to an internal
PairedException
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PairedGeneralException(String message, Throwable t1, Throwable t2)
PairedGeneralException(Throwable t1, Throwable t2)
Constructs a new PairedException from the two throwables
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
fillInStackTrace()
Throwable
getCause()
String
getLocalizedMessage()
String
getMessage()
Throwable
getSecondCause()
Gets the parent of the second exceptionStackTraceElement[]
getSecondStackTrace()
Gets the second stack traceStackTraceElement[]
getStackTrace()
Throwable
initCause(Throwable cause)
void
printStackTrace()
void
printStackTrace(PrintStream s)
void
printStackTrace(PrintWriter s)
void
setStackTrace(StackTraceElement[] stackTrace)
String
toString()
-
Methods inherited from class sailpoint.tools.GeneralException
breakpoint, checkBreakpoint, enableBreakpoint
-
Methods inherited from class sailpoint.tools.AbstractLocalizableException
getDetailedError, getLocalizedMessage, getMessageInstance, getPossibleSuggestion, setDetailedError, setLocalizedMessage, setPossibleSuggestion
-
Methods inherited from class java.lang.Throwable
addSuppressed, getSuppressed
-
-
-
-
Constructor Detail
-
PairedGeneralException
public PairedGeneralException(Throwable t1, Throwable t2)
Constructs a new PairedException from the two throwables- Parameters:
t1
- The first throwablet2
- The second throwable
-
PairedGeneralException
public PairedGeneralException(String message, Throwable t1, Throwable t2)
-
-
Method Detail
-
fillInStackTrace
public Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in classThrowable
-
getLocalizedMessage
public String getLocalizedMessage()
- Specified by:
getLocalizedMessage
in interfacesailpoint.tools.Localizable
- Overrides:
getLocalizedMessage
in classsailpoint.tools.AbstractLocalizableException
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classsailpoint.tools.AbstractLocalizableException
-
getSecondCause
public Throwable getSecondCause()
Gets the parent of the second exception- Returns:
- The stack trace for the second exception, via
PairedException.getSecondCause()
()}
-
getSecondStackTrace
public StackTraceElement[] getSecondStackTrace()
Gets the second stack trace- Returns:
- The stack trace for the second exception, via
PairedException.getSecondStackTrace()
-
getStackTrace
public StackTraceElement[] getStackTrace()
- Overrides:
getStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace(PrintWriter s)
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace()
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
public void printStackTrace(PrintStream s)
- Overrides:
printStackTrace
in classThrowable
-
setStackTrace
public void setStackTrace(StackTraceElement[] stackTrace)
- Overrides:
setStackTrace
in classThrowable
-
-