Package org.apache.olingo.server.core
Class ODataWritableContent.WriteErrorContext
java.lang.Object
org.apache.olingo.server.core.ODataWritableContent.WriteErrorContext
- All Implemented Interfaces:
ODataContentWriteErrorContext
- Enclosing class:
- ODataWritableContent
public static class ODataWritableContent.WriteErrorContext
extends Object
implements ODataContentWriteErrorContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the exception which caused this error (as Java exception).Get the exception which caused this error (as ODataLibraryException exception).
-
Constructor Details
-
WriteErrorContext
-
-
Method Details
-
getException
Description copied from interface:ODataContentWriteErrorContextGet the exception which caused this error (as Java exception). If the cause exception is a ODataLibraryException this method will return the same exception as theODataContentWriteErrorContext.getODataLibraryException()method.- Specified by:
getExceptionin interfaceODataContentWriteErrorContext- Returns:
- the exception which caused this error (as Java exception).
-
getODataLibraryException
Description copied from interface:ODataContentWriteErrorContextGet the exception which caused this error (as ODataLibraryException exception). If the cause exception is an ODataLibraryException this method will return the same exception as theODataContentWriteErrorContext.getException()method. If the cause exception is NOT an ODataLibraryException this method will returnNULL.- Specified by:
getODataLibraryExceptionin interfaceODataContentWriteErrorContext- Returns:
- the cause exception if it is an ODataLibraryException otherwise
this method will return
NULL.
-