public class SimpleException extends CougarApplicationException implements Transcribable
| Modifier and Type | Field and Description |
|---|---|
protected SimpleExceptionErrorCodeEnum |
errorCode
the unique code for this error
|
static Parameter[] |
PARAMETERS |
protected java.lang.String |
reason
A human readable description of this error
|
static ServiceVersion |
SERVICE_VERSION |
| Constructor and Description |
|---|
SimpleException(ResponseCode responseCode,
SimpleExceptionErrorCodeEnum errorCode,
java.lang.String reason) |
SimpleException(SimpleExceptionErrorCodeEnum errorCode,
java.lang.String reason) |
SimpleException(java.lang.Throwable cause,
ResponseCode responseCode,
SimpleExceptionErrorCodeEnum errorCode,
java.lang.String reason)
Constructor with the cause of the exception (exception chaining)
|
SimpleException(TranscriptionInput in,
java.util.Set<TranscribableParams> _transcriptionParams)
Constructor for reading the Exception from a TranscriptionInput source
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String[]> |
getApplicationFaultMessages() |
java.lang.String |
getApplicationFaultNamespace() |
SimpleExceptionErrorCodeEnum |
getErrorCode() |
java.lang.String |
getMessage() |
Parameter[] |
getParameters() |
java.lang.String |
getRawErrorCodeValue() |
java.lang.String |
getReason() |
ServiceVersion |
getServiceVersion() |
void |
transcribe(TranscriptionInput in,
java.util.Set<TranscribableParams> params,
boolean client) |
void |
transcribe(TranscriptionOutput out,
java.util.Set<TranscribableParams> _transcriptionParams,
boolean client) |
getExceptionCode, getResponseCodeprotected SimpleExceptionErrorCodeEnum errorCode
protected java.lang.String reason
public static final ServiceVersion SERVICE_VERSION
public static final Parameter[] PARAMETERS
public SimpleException(ResponseCode responseCode, SimpleExceptionErrorCodeEnum errorCode, java.lang.String reason)
public SimpleException(SimpleExceptionErrorCodeEnum errorCode, java.lang.String reason)
public SimpleException(TranscriptionInput in, java.util.Set<TranscribableParams> _transcriptionParams) throws java.lang.Exception
in - the TranscriptionInput to read the exception data fromjava.lang.Exceptionpublic SimpleException(java.lang.Throwable cause,
ResponseCode responseCode,
SimpleExceptionErrorCodeEnum errorCode,
java.lang.String reason)
cause - the causeThrowable.getCause()public final SimpleExceptionErrorCodeEnum getErrorCode()
public final java.lang.String getRawErrorCodeValue()
public final java.lang.String getReason()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.util.List<java.lang.String[]> getApplicationFaultMessages()
getApplicationFaultMessages in class CougarApplicationExceptionpublic java.lang.String getApplicationFaultNamespace()
getApplicationFaultNamespace in class CougarApplicationExceptionpublic Parameter[] getParameters()
getParameters in interface Transcribablepublic void transcribe(TranscriptionOutput out, java.util.Set<TranscribableParams> _transcriptionParams, boolean client) throws java.lang.Exception
transcribe in interface Transcribablejava.lang.Exceptionpublic void transcribe(TranscriptionInput in, java.util.Set<TranscribableParams> params, boolean client) throws java.lang.Exception
transcribe in interface Transcribablejava.lang.Exceptionpublic ServiceVersion getServiceVersion()
getServiceVersion in interface TranscribableCopyright © 2009-2014 Betfair. All Rights Reserved.