# IRestExceptionDecoder Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.storage.irestexceptiondecoder/)

## DecodeException(Exception, HttpStatusCode, string, bool) {#decodeexception-system-exception-out-system-net-httpstatuscode-out-string-bool-42506465}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.storage.irestexceptiondecoder/methods/decodeexception-system-exception-out-system-net-httpstatuscode-out-string-bool-42506465/)

```csharp
public abstract bool DecodeException(Exception exception, out HttpStatusCode httpStatusCode, out string restStatus, bool getExtendedErrors = false)
```

Decode details of the exception.

### Parameters

- `exception` (`Exception`): Exception to decode.
- `httpStatusCode` (`HttpStatusCode`): HTTP status code for the error.
- `restStatus` (`string`): REST status for the error.
- `getExtendedErrors` (`bool`): Whether or not to extract REST error code.

### Returns

A value indicating whether the exception was decoded.
