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
ODataErrorCallback
ODataApplicationException
will be transformed into the OData error format.
EntityProvider
writeErrorDocument can be used.handleError
in interface ODataErrorCallback
context
- of this errorODataApplicationException
Copyright © 2013-2017 The Apache Software Foundation. All Rights Reserved.