Type Alias: ODataErrorMapper
ODataErrorMapper = (
exception,context) =>ODataErrorMapping|undefined|null
Defined in: response/odata-error.ts:74
Maps any exception thrown while handling an OData request to the OData error to send. Return undefined to fall back to the library's default mapping.
It runs for the routes declared with the OData route decorators (@ODataGet, @ODataPost, …), for $metadata and for every failing operation of a $batch request. It must be synchronous. If it throws, returns a Promise or returns an invalid mapping, a warning is logged and the default mapping is used.
Parameters
exception
unknown
context
Returns
ODataErrorMapping | undefined | null