org.odata4j.core
Interface OError


public interface OError

An OData error message, consisting of an error code, an error-message text, and an optional inner error.


Method Summary
 String getCode()
          Gets the error code, a mandatory service-defined string.
 String getInnerError()
          Gets the inner error, service specific debugging information that might assist a service implementer in determining the cause of an error.
 String getMessage()
          Gets the error-message text, a human readable message describing the error.
 

Method Detail

getCode

String getCode()
Gets the error code, a mandatory service-defined string.

This value may be used to provide a more specific substatus to the returned HTTP response code.

Returns:
the error code

getInnerError

String getInnerError()
Gets the inner error, service specific debugging information that might assist a service implementer in determining the cause of an error.

Should only be used in development environments in order to guard against potential security concerns around information disclosure.

Returns:
the inner error

getMessage

String getMessage()
Gets the error-message text, a human readable message describing the error.

Returns:
the error-message text


http://odata4j.org