public class ODataNetworkException extends ODataException
Modifier and Type | Class and Description |
---|---|
static class |
ODataNetworkException.AdditionalNetworkExceptionInfo
Value class, containing various information about the cause of the network exception
|
static class |
ODataNetworkException.ErrorCode
Network error codes used by
ODataNetworkException . |
ODataException.AbstractErrorCode
errorCode
Constructor and Description |
---|
ODataNetworkException(ODataNetworkException.ErrorCode errorCode)
Creates a new network exception with the specified error code.
|
ODataNetworkException(ODataNetworkException.ErrorCode errorCode,
ODataNetworkException.AdditionalNetworkExceptionInfo additionalInfo)
Creates a new network exception with the specified error code and additional information
|
ODataNetworkException(ODataNetworkException.ErrorCode errorCode,
java.lang.Throwable cause)
Creates a new network exception with the specified error code and cause.
|
ODataNetworkException(ODataNetworkException.ErrorCode errorCode,
java.lang.Throwable cause,
ODataNetworkException.AdditionalNetworkExceptionInfo additionalInfo)
Creates a new network exception with the specified error code, cause and additional information
|
Modifier and Type | Method and Description |
---|---|
ODataNetworkException.AdditionalNetworkExceptionInfo |
getAdditionalInfo()
Returns additional information about the exception;
|
java.lang.String |
getMessage() |
public ODataNetworkException(ODataNetworkException.ErrorCode errorCode)
errorCode
- the error code, must be non-nullpublic ODataNetworkException(ODataNetworkException.ErrorCode errorCode, java.lang.Throwable cause)
errorCode
- the error code, must be non-nullcause
- the causing exception, must be non-nullpublic ODataNetworkException(ODataNetworkException.ErrorCode errorCode, ODataNetworkException.AdditionalNetworkExceptionInfo additionalInfo)
errorCode
- the error code, must be non-nulladditionalInfo
- additional information about the cause of the error, must be non-nullpublic ODataNetworkException(ODataNetworkException.ErrorCode errorCode, java.lang.Throwable cause, ODataNetworkException.AdditionalNetworkExceptionInfo additionalInfo)
errorCode
- the error code, must be non-nullcause
- the causing exception, must be non-nulladditionalInfo
- additional information about the cause of the error, must be non-nullpublic java.lang.String getMessage()
getMessage
in class ODataException
public ODataNetworkException.AdditionalNetworkExceptionInfo getAdditionalInfo()