# DurableJobRunResult.Failed(Exception)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durablejobs/orleans.durablejobs.durablejobrunresult/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durablejobs/orleans.durablejobs.durablejobrunresult/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.DurableJobs/DurableJobRunResult.cs#L83-L84)

```csharp
public static DurableJobRunResult Failed(Exception exception)
```

Creates a result indicating the job failed.

### Parameters

- `exception` (`Exception`): The exception that caused the failure. This will be passed to the retry policy.

### Returns

A failed job result.
