Package oracle.iam.platform.utils
Class SuperRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
oracle.iam.platform.utils.SuperRuntimeException
- All Implemented Interfaces:
Serializable
,oracle.iam.platform.utils.io.XmlPrintable
- Direct Known Subclasses:
AccessControlException
,AccessDeniedException
,AccessDeniedException
,AccessDeniedException
,AccessDeniedException
,CatalogRunTimeException
,CertificationEngineException
,CertificationIllegalStateException
,CertificationWorkflowException
,ChildReconException
,ConfigException
,ConfigurationException
,CreateException
,CreateOrganizationException
,DataAccessException
,DBAccessException
,DBAccessException
,DeleteException
,DeleteOrganizationException
,EntityPublicationException
,EventManagementException
,IDARuntimeException
,InconsistentPasswordRulesException
,InvalidArgumentException
,InvalidChangeTypeException
,InvalidEventException
,InvalidEventStatusException
,InvalidOwnerTypeException
,ModifyException
,NoSuchEventException
,NoSuchPasswordPolicyException
,OperationNotSupportedException
,oracle.iam.platform.kernel.OrchestrationException
,ProvisioningConfigurationException
,ProvisioningRuntimeException
,ReconciliationException
,UnmatchKeyException
,UserNotFoundException
public class SuperRuntimeException
extends RuntimeException
implements oracle.iam.platform.utils.io.XmlPrintable
A placeholder class for adding runtime exception handling functionality.
- Author:
- Adam Victor
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new super runtime exception with null as its detail message.SuperRuntimeException
(String message) Constructs a new super runtime exception with the specified detail message.SuperRuntimeException
(String errorCode, Object[] errorData) SuperRuntimeException
(String errorCode, Object[] errorData, Throwable cause) SuperRuntimeException
(String errorCode, String errorMessage, Object[] errorData) SuperRuntimeException
(String errorCode, String errorMessage, Object[] errorData, Throwable cause) SuperRuntimeException
(String message, Throwable cause) Constructs a new super runtime exception with the specified detail message and cause.SuperRuntimeException
(Throwable cause) Constructs a new super runtime exception with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionvoid
static Serializable[]
convertErrorData
(Object[] errorData) void
Method to copy error information from cause by.Get error code associated with the exception.Object[]
Gets error data associated with the exception, that can be used for globalization.Gets the list of errors associated with exception.String[]
Gets localized messages associated with the super runtime exception and all of the causes.String[]
Gets messages associated with the super runtime exception and all of the causes.boolean
Returns true if exception is associated with multiple errors.void
setErrorCode
(String errorCode) void
setErrorData
(Object[] errorData) void
toString()
void
xprint
(oracle.iam.platform.utils.io.XmlPrintWriter out) Prints super runtime exception's properties to the XmlPrintWriter.void
Prints super runtime exception's properties to the XmlPrintWriter.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SuperRuntimeException
public SuperRuntimeException()Constructs a new super runtime exception with null as its detail message. -
SuperRuntimeException
Constructs a new super runtime exception with the specified detail message.- Parameters:
message
- the detail message
-
SuperRuntimeException
Constructs a new super runtime exception with the specified detail message and cause.- Parameters:
message
- the detail messagecause
- the cause
-
SuperRuntimeException
Constructs a new super runtime exception with the specified cause.- Parameters:
cause
- the cause
-
SuperRuntimeException
-
SuperRuntimeException
-
SuperRuntimeException
-
SuperRuntimeException
-
-
Method Details
-
setErrorCode
-
copyErrorInfo
Method to copy error information from cause by. This copies the error code, data and localized message- Parameters:
e
- , cause by exception
-
getErrorCode
Get error code associated with the exception.- Returns:
- error code associated with the exception.
-
setErrorData
-
getErrorData
Gets error data associated with the exception, that can be used for globalization.- Returns:
- error data associated with the exception as an array.
-
getLocalizedMessage
- Overrides:
getLocalizedMessage
in classThrowable
-
toString
-
setErrors
-
hasMultipleErrors
public boolean hasMultipleErrors()Returns true if exception is associated with multiple errors.- Returns:
- true if exception is associated with multiple errors, false otherwise.
-
getErrors
Gets the list of errors associated with exception.- Returns:
- list of errors associated with exception.
-
addError
-
getMessages
Gets messages associated with the super runtime exception and all of the causes.- Returns:
- String array of messages
-
getLocalizedMessages
Gets localized messages associated with the super runtime exception and all of the causes.- Returns:
- String array of messages
-
xprint
public void xprint(oracle.iam.platform.utils.io.XmlPrintWriter out) Prints super runtime exception's properties to the XmlPrintWriter.- Specified by:
xprint
in interfaceoracle.iam.platform.utils.io.XmlPrintable
- Parameters:
out
- the XmlPrintWriter
-
xprint
Prints super runtime exception's properties to the XmlPrintWriter.- Specified by:
xprint
in interfaceoracle.iam.platform.utils.io.XmlPrintable
- Parameters:
name
- the XML nameout
- the XmlPrintWriter
-
convertErrorData
-