# DurableOperationError.DurableOperationError(string, string)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableoperationerror/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durableoperationerror/constructors/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/DurableOperation.cs#L115-L117)

```csharp
public DurableOperationError(string Code, string Message)
```

Describes why an operation failed or was canceled.

### Parameters

- `Code` (`string`): A machine-readable code, which [DurableHttpOptions](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durablehttpoptions/) chooses.
- `Message` (`string`): A human-readable description.
