public class ScenarioErrorCallback extends Object implements ODataErrorCallback
| Constructor and Description |
|---|
ScenarioErrorCallback() |
| 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.
|
public ODataResponse handleError(ODataErrorContext context) throws ODataApplicationException
ODataErrorCallbackODataApplicationException will be transformed into the OData error format.
EntityProvider
writeErrorDocument can be used.handleError in interface ODataErrorCallbackcontext - of this errorODataApplicationExceptionCopyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.