public interface ODataErrorCallback extends ODataCallback
Modifier and Type | Method and Description |
---|---|
ODataResponse |
handleError(ODataErrorContext context)
This method can be used to handle an error differently than the exception mapper would.
|
ODataResponse handleError(ODataErrorContext context) throws ODataApplicationException
ODataApplicationException
will be transformed into the OData error format.
EntityProvider
writeErrorDocument can be used.context
- of this errorODataApplicationException
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.