# DurableJobRunResult.Failed(Exception)

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

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/DurableJobs/DurableJobRunResult.cs#L116-L117)

```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.
