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 String |
reason
A human readable description of this error
|
static ServiceVersion |
SERVICE_VERSION |
| Constructor and Description |
|---|
SimpleException(ResponseCode responseCode,
SimpleExceptionErrorCodeEnum errorCode,
String reason) |
SimpleException(SimpleExceptionErrorCodeEnum errorCode,
String reason) |
SimpleException(Throwable cause,
ResponseCode responseCode,
SimpleExceptionErrorCodeEnum errorCode,
String reason)
Constructor with the cause of the exception (exception chaining)
|
SimpleException(TranscriptionInput in,
Set<TranscribableParams> _transcriptionParams)
Constructor for reading the Exception from a TranscriptionInput source
|
| Modifier and Type | Method and Description |
|---|---|
List<String[]> |
getApplicationFaultMessages() |
String |
getApplicationFaultNamespace() |
SimpleExceptionErrorCodeEnum |
getErrorCode() |
String |
getMessage() |
Parameter[] |
getParameters() |
String |
getRawErrorCodeValue() |
String |
getReason() |
ServiceVersion |
getServiceVersion() |
void |
transcribe(TranscriptionInput in,
Set<TranscribableParams> params,
boolean client) |
void |
transcribe(TranscriptionOutput out,
Set<TranscribableParams> _transcriptionParams,
boolean client) |
getExceptionCode, getResponseCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected SimpleExceptionErrorCodeEnum errorCode
protected String reason
public static final ServiceVersion SERVICE_VERSION
public static final Parameter[] PARAMETERS
public SimpleException(ResponseCode responseCode, SimpleExceptionErrorCodeEnum errorCode, String reason)
public SimpleException(SimpleExceptionErrorCodeEnum errorCode, String reason)
public SimpleException(TranscriptionInput in, Set<TranscribableParams> _transcriptionParams) throws Exception
in - the TranscriptionInput to read the exception data fromExceptionpublic SimpleException(Throwable cause, ResponseCode responseCode, SimpleExceptionErrorCodeEnum errorCode, String reason)
cause - the causeThrowable.getCause()public final SimpleExceptionErrorCodeEnum getErrorCode()
public final String getRawErrorCodeValue()
public final String getReason()
public List<String[]> getApplicationFaultMessages()
getApplicationFaultMessages in class CougarApplicationExceptionpublic String getApplicationFaultNamespace()
getApplicationFaultNamespace in class CougarApplicationExceptionpublic Parameter[] getParameters()
getParameters in interface Transcribablepublic void transcribe(TranscriptionOutput out, Set<TranscribableParams> _transcriptionParams, boolean client) throws Exception
transcribe in interface TranscribableExceptionpublic void transcribe(TranscriptionInput in, Set<TranscribableParams> params, boolean client) throws Exception
transcribe in interface TranscribableExceptionpublic ServiceVersion getServiceVersion()
getServiceVersion in interface Transcribablepublic String getMessage()
getMessage in class ThrowableCopyright © 2009-2015 Betfair. All Rights Reserved.