# WriteRequest Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.connections.transport.writerequest/)

## SetException(Exception) {#setexception-system-exception-d043e81f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.connections.transport.writerequest/methods/setexception-system-exception-d043e81f/)

```csharp
public abstract void SetException(Exception error)
```

Completes the request with an error.

### Parameters

- `error` (`Exception`): The error which terminated the write.

## SetResult {#setresult-b39e1e2c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.connections.transport.writerequest/methods/setresult-b39e1e2c/)

```csharp
public abstract void SetResult()
```

Completes the request after all buffered data has been written.
