Skip to content

Commit

Permalink
Fix explanation of terminal error
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed Aug 21, 2023
1 parent 43e8460 commit 0ba4430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/services/sdk/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { TerminalError } from "@restatedev/restate-sdk";
throw new TerminalError("Something went wrong.", { errorCode: 13, cause: "Something caused this." })
```

The `options` are an optional argument. You can throw a terminal error anywhere in your handler.
The `errorCode` and `cause` are optional. You can throw a terminal error anywhere in your handler.
Restate will propagate the error code and message back to the caller and will consider this invocation to be finished.

## Errors during side effect execution
Expand Down

0 comments on commit 0ba4430

Please sign in to comment.