---
title: "replyWithException:"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsdistantobjectrequest/replywithexception:"
---

# replyWithException:

Sends a reply back to the remote object making the distant object request.

## Declaration

```occ
- (void) replyWithException:(NSException *) exception;
```

## Parameters

- `exception`: The exception to send.

## Discussion

Discussion If exception is nil, the return value of the receiver’s invocation is sent; otherwise, exception is sent and is automatically raised when it arrives at its destination.
