Skip navigation links


oracle.iam.platform.utils
Class SuperRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by oracle.iam.platform.utils.SuperRuntimeException

All Implemented Interfaces:
java.io.Serializable, oracle.iam.platform.utils.io.XmlPrintable
Direct Known Subclasses:
AccessControlException, AccessDeniedException, oracle.iam.platform.authz.exception.AccessDeniedException, AccessDeniedException, ChildReconException, ConfigException, CreateException, CreateOrganizationException, DataAccessException, DBAccessException, DeleteException, DeleteOrganizationException, DMLDAPRoleCreateUpdateException, EntityPublicationException, EventFailedException, EventManagementException, InconsistentPasswordRulesException, InvalidChangeTypeException, InvalidEventException, InvalidEventStatusException, InvalidOwnerTypeException, ModifyException, NoSuchEventException, NoSuchPasswordPolicyException, NullPasswordPriorityException, PasswordPriorityNotUniqueException, ReconciliationException, UnmatchKeyException, UserNotFoundException, ValidationException, oracle.iam.platform.kernel.ValidationFailedException

public class SuperRuntimeException
extends java.lang.RuntimeException
implements oracle.iam.platform.utils.io.XmlPrintable

A placeholder class for adding runtime exception handling functionality.

See Also:
Serialized Form

Constructor Summary
SuperRuntimeException()
          Constructs a new super runtime exception with null as its detail message.
SuperRuntimeException(java.lang.String message)
          Constructs a new super runtime exception with the specified detail message.
SuperRuntimeException(java.lang.String errorCode, java.lang.Object[] errorData)
           
SuperRuntimeException(java.lang.String errorCode, java.lang.Object[] errorData, java.lang.Throwable cause)
           
SuperRuntimeException(java.lang.String errorCode, java.lang.String errorMessage, java.lang.Object[] errorData)
           
SuperRuntimeException(java.lang.String errorCode, java.lang.String errorMessage, java.lang.Object[] errorData, java.lang.Throwable cause)
           
SuperRuntimeException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new super runtime exception with the specified detail message and cause.
SuperRuntimeException(java.lang.Throwable cause)
          Constructs a new super runtime exception with the specified cause.

 

Method Summary
 void addError(OIMError error)
           
static java.io.Serializable[] convertErrorData(java.lang.Object[] errorData)
           
 void copyErrorInfo(java.lang.Throwable e)
          Method to copy error information from cause by.
 java.lang.String getErrorCode()
          Get error code associated with the exception.
 java.lang.Object[] getErrorData()
          Gets error data associated with the exception, that can be used for globalization.
 java.util.List getErrors()
          Gets the list of errors associated with exception.
 java.lang.String getLocalizedMessage()
           
 java.lang.String[] getLocalizedMessages()
          Gets localized messages associated with the super runtime exception and all of the causes.
 java.lang.String[] getMessages()
          Gets messages associated with the super runtime exception and all of the causes.
 boolean hasMultipleErrors()
          Returns true if exception is associated with multiple errors.
 void setErrorCode(java.lang.String errorCode)
           
 void setErrorData(java.lang.Object[] errorData)
           
 void setErrors(java.util.List errors)
           
 java.lang.String toString()
           
 void xprint(oracle.iam.platform.utils.io.XmlPrintWriter out)
          Prints super runtime exception's properties to the XmlPrintWriter.
 void xprint(oracle.iam.platform.utils.io.XmlPrintWriter out, java.lang.String name)
          Prints super runtime exception's properties to the XmlPrintWriter.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

SuperRuntimeException

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

SuperRuntimeException

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

SuperRuntimeException

public SuperRuntimeException(java.lang.String message,
                             java.lang.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(java.lang.Throwable cause)
Constructs a new super runtime exception with the specified cause.
Parameters:
cause - the cause

SuperRuntimeException

public SuperRuntimeException(java.lang.String errorCode,
                             java.lang.Object[] errorData)

SuperRuntimeException

public SuperRuntimeException(java.lang.String errorCode,
                             java.lang.Object[] errorData,
                             java.lang.Throwable cause)

SuperRuntimeException

public SuperRuntimeException(java.lang.String errorCode,
                             java.lang.String errorMessage,
                             java.lang.Object[] errorData)

SuperRuntimeException

public SuperRuntimeException(java.lang.String errorCode,
                             java.lang.String errorMessage,
                             java.lang.Object[] errorData,
                             java.lang.Throwable cause)

Method Detail

setErrorCode

public void setErrorCode(java.lang.String errorCode)

copyErrorInfo

public void copyErrorInfo(java.lang.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 java.lang.String getErrorCode()
Get error code associated with the exception.
Returns:
error code associated with the exception.

setErrorData

public void setErrorData(java.lang.Object[] errorData)

getErrorData

public java.lang.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 java.lang.String getLocalizedMessage()
Overrides:
getLocalizedMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

setErrors

public void setErrors(java.util.List 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 java.util.List getErrors()
Gets the list of errors associated with exception.
Returns:
list of errors associated with exception.

addError

public void addError(OIMError error)

getMessages

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

getLocalizedMessages

public java.lang.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,
                   java.lang.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 java.io.Serializable[] convertErrorData(java.lang.Object[] errorData)

Skip navigation links


Copyright © 2014, Oracle and/or its affiliates. All rights reserved.