Class 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 Details

    • SuperRuntimeException

      public SuperRuntimeException()
      Constructs a new super runtime exception with null as its detail message.
    • SuperRuntimeException

      public SuperRuntimeException(String message)
      Constructs a new super runtime exception with the specified detail message.
      Parameters:
      message - the detail message
    • SuperRuntimeException

      public SuperRuntimeException(String message, Throwable cause)
      Constructs a new super runtime exception with the specified detail message and cause.
      Parameters:
      message - the detail message
      cause - the cause
    • SuperRuntimeException

      public SuperRuntimeException(Throwable cause)
      Constructs a new super runtime exception with the specified cause.
      Parameters:
      cause - the cause
    • SuperRuntimeException

      public SuperRuntimeException(String errorCode, Object[] errorData)
    • SuperRuntimeException

      public SuperRuntimeException(String errorCode, Object[] errorData, Throwable cause)
    • SuperRuntimeException

      public SuperRuntimeException(String errorCode, String errorMessage, Object[] errorData)
    • SuperRuntimeException

      public SuperRuntimeException(String errorCode, String errorMessage, Object[] errorData, Throwable cause)
  • Method Details

    • setErrorCode

      public void setErrorCode(String errorCode)
    • copyErrorInfo

      public void copyErrorInfo(Throwable e)
      Method to copy error information from cause by. This copies the error code, data and localized message
      Parameters:
      e - , cause by exception
    • getErrorCode

      public String getErrorCode()
      Get error code associated with the exception.
      Returns:
      error code associated with the exception.
    • setErrorData

      public void setErrorData(Object[] errorData)
    • getErrorData

      public Object[] 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

      public String getLocalizedMessage()
      Overrides:
      getLocalizedMessage in class Throwable
    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • setErrors

      public void setErrors(List<OIMError> errors)
    • 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

      public List<OIMError> getErrors()
      Gets the list of errors associated with exception.
      Returns:
      list of errors associated with exception.
    • addError

      public void addError(OIMError error)
    • getMessages

      public String[] getMessages()
      Gets messages associated with the super runtime exception and all of the causes.
      Returns:
      String array of messages
    • getLocalizedMessages

      public String[] 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 interface oracle.iam.platform.utils.io.XmlPrintable
      Parameters:
      out - the XmlPrintWriter
    • xprint

      public void xprint(oracle.iam.platform.utils.io.XmlPrintWriter out, String name)
      Prints super runtime exception's properties to the XmlPrintWriter.
      Specified by:
      xprint in interface oracle.iam.platform.utils.io.XmlPrintable
      Parameters:
      name - the XML name
      out - the XmlPrintWriter
    • convertErrorData

      public static Serializable[] convertErrorData(Object[] errorData)