Package org.apache.olingo.server.api
Interface ODataContentWriteErrorContext
public interface ODataContentWriteErrorContext
The WriteContentErrorErrorContext is the parameter for the WriteContentErrorCallback.
and contains all relevant error information
-
Method Summary
Modifier and TypeMethodDescriptionGet the exception which caused this error (as Java exception).Get the exception which caused this error (as ODataLibraryException exception).
-
Method Details
-
getException
Exception getException()Get the exception which caused this error (as Java exception). If the cause exception is a ODataLibraryException this method will return the same exception as thegetODataLibraryException()
method.- Returns:
- the exception which caused this error (as Java exception).
-
getODataLibraryException
ODataLibraryException getODataLibraryException()Get the exception which caused this error (as ODataLibraryException exception). If the cause exception is an ODataLibraryException this method will return the same exception as thegetException()
method. If the cause exception is NOT an ODataLibraryException this method will returnNULL
.- Returns:
- the cause exception if it is an ODataLibraryException otherwise
this method will return
NULL
.
-