Skip to content

IRestExceptionDecoder Methods

Interface to be optionally implemented by storage to return richer exception details. TODO: Remove this interface. Move to decorator pattern for monitoring purposes. - jbragg

DecodeException(Exception, HttpStatusCode, string, bool)

abstract
public abstract bool DecodeException(Exception exception, out HttpStatusCode httpStatusCode, out string restStatus, bool getExtendedErrors = false)
Decode details of the exception.

Parameters

exceptionException
Exception to decode.
httpStatusCodeHttpStatusCode
HTTP status code for the error.
restStatusstring
REST status for the error.
getExtendedErrorsbool
Whether or not to extract REST error code.

Returns

A value indicating whether the exception was decoded.