public abstract class ODataException
extends java.lang.Exception
ODataException.AbstractErrorCode
interface. This superclass then stores this error code which then can be easily checked in catch blocks using the equality operator.Modifier and Type | Class and Description |
---|---|
static interface |
ODataException.AbstractErrorCode
Interface for error codes.
|
Modifier and Type | Field and Description |
---|---|
ODataException.AbstractErrorCode |
errorCode
The error code.
|
Modifier | Constructor and Description |
---|---|
protected |
ODataException(ODataException.AbstractErrorCode errorCode)
Creates a new exception object using the specified error code.
|
protected |
ODataException(ODataException.AbstractErrorCode errorCode,
java.lang.Throwable cause)
Creates a new exception object using the specified error code and cause.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage() |
public final ODataException.AbstractErrorCode errorCode
protected ODataException(ODataException.AbstractErrorCode errorCode)
errorCode
- the error code, must be non-nullprotected ODataException(ODataException.AbstractErrorCode errorCode, java.lang.Throwable cause)
errorCode
- the error code, must be non-nullcause
- the causing exception, must be non-null