public class SuperRuntimeException
extends java.lang.RuntimeException
implements oracle.iam.platform.utils.io.XmlPrintable
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public SuperRuntimeException()
public SuperRuntimeException(java.lang.String message)
message
- the detail messagepublic SuperRuntimeException(java.lang.String message, java.lang.Throwable cause)
message
- the detail messagecause
- the causepublic SuperRuntimeException(java.lang.Throwable cause)
cause
- the causepublic SuperRuntimeException(java.lang.String errorCode, java.lang.Object[] errorData)
public SuperRuntimeException(java.lang.String errorCode, java.lang.Object[] errorData, java.lang.Throwable cause)
public SuperRuntimeException(java.lang.String errorCode, java.lang.String errorMessage, java.lang.Object[] errorData)
public SuperRuntimeException(java.lang.String errorCode, java.lang.String errorMessage, java.lang.Object[] errorData, java.lang.Throwable cause)
public void setErrorCode(java.lang.String errorCode)
public void copyErrorInfo(java.lang.Throwable e)
e,
- cause by exceptionpublic java.lang.String getErrorCode()
public void setErrorData(java.lang.Object[] errorData)
public java.lang.Object[] getErrorData()
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
public void setErrors(java.util.List errors)
public boolean hasMultipleErrors()
public java.util.List getErrors()
public void addError(OIMError error)
public java.lang.String[] getMessages()
public java.lang.String[] getLocalizedMessages()
public void xprint(oracle.iam.platform.utils.io.XmlPrintWriter out)
xprint
in interface oracle.iam.platform.utils.io.XmlPrintable
out
- the XmlPrintWriterpublic void xprint(oracle.iam.platform.utils.io.XmlPrintWriter out, java.lang.String name)
xprint
in interface oracle.iam.platform.utils.io.XmlPrintable
name
- the XML nameout
- the XmlPrintWriterpublic static java.io.Serializable[] convertErrorData(java.lang.Object[] errorData)