public class ServiceException
extends java.lang.Exception
implements java.io.Serializable, com.ibm.commerce.exception.ECCorrelatedIdentity
| Constructor and Description |
|---|
ServiceException()
Constructs a
ServiceException. |
ServiceException(java.lang.String correlationIdentifier,
long reasonCode,
java.lang.String localizedMessage,
java.lang.String[] symptomData,
ServiceParameterError[] serviceParameterErrors,
boolean recoverable)
Constructs a
ServiceException. |
ServiceException(java.lang.String correlationIdentifier,
long reasonCode,
java.lang.String message,
java.lang.String localizedMessage,
java.lang.String[] symptomData,
ServiceParameterError[] serviceParameterErrors,
boolean recoverable)
Constructs a
ServiceException. |
ServiceException(java.lang.Throwable throwable)
Constructs a
ServiceException. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCorrelationIdentifier()
Gets the exception correlation identifier.
|
java.lang.String |
getLocalizedMessage()
Gets the localized exception message.
|
java.lang.String |
getMessage()
Gets the exception message.
|
long |
getReasonCode()
Gets the reason code.
|
ServiceParameterError[] |
getServiceParameterErrors()
Gets the related service parameter errors if any are available.
|
java.lang.String[] |
getSymptomData()
Gets the symptom data.
|
boolean |
isRecoverable()
Checks whether this service exception is recoverable.
|
void |
printStackTrace(java.io.PrintStream s)
Calls super printStackTrace() and prints out the
correlation identifier if one exists.
|
void |
printStackTrace(java.io.PrintWriter s)
Calls super printStackTrace() and prints out the
correlation identifier if one exists.
|
public ServiceException()
ServiceException.public ServiceException(java.lang.Throwable throwable)
ServiceException.throwable - The cause of the exception.public ServiceException(java.lang.String correlationIdentifier,
long reasonCode,
java.lang.String localizedMessage,
java.lang.String[] symptomData,
ServiceParameterError[] serviceParameterErrors,
boolean recoverable)
ServiceException.errorCorrelationId - The exception correlation identifier.reasonCode - The reason code.localizedMessage - The localized message.symptomData - The symptom data.serviceParameterErrors - The service parameter errors associated with the exception.recoverable - Whether the exception is recoverable.public ServiceException(java.lang.String correlationIdentifier,
long reasonCode,
java.lang.String message,
java.lang.String localizedMessage,
java.lang.String[] symptomData,
ServiceParameterError[] serviceParameterErrors,
boolean recoverable)
ServiceException.errorCorrelationId - The exception correlation identifier.reasonCode - The reason code.message - The exception message.localizedMessage - The localized exception message.symptomData - The symptom data.serviceParameterErrors - The service parameter errors associated with the exception.recoverable - Whether the exception is recoverable.public java.lang.String getCorrelationIdentifier()
getCorrelationIdentifier in interface com.ibm.commerce.exception.ECCorrelatedIdentitypublic long getReasonCode()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.Throwablepublic java.lang.String[] getSymptomData()
public ServiceParameterError[] getServiceParameterErrors()
null if none are availablepublic boolean isRecoverable()
true if this exception is recoverable; false otherwisepublic void printStackTrace(java.io.PrintWriter s)
printStackTrace in class java.lang.Throwables - The PrintWriter to write the stack.Throwable.printStackTrace(java.io.PrintWriter)public void printStackTrace(java.io.PrintStream s)
printStackTrace in class java.lang.Throwables - The PrintStream to write the stack.Throwable.printStackTrace(java.io.PrintStream)