Class TerminalException
- Namespace
- Restate.Sdk
- Assembly
- Restate.Sdk.dll
An error that will not be retried by the Restate runtime. Use this for business logic failures or validation errors where retrying would not help.
public sealed class TerminalException : Exception, ISerializable
- Inheritance
-
TerminalException
- Implements
- Inherited Members
Constructors
TerminalException(string, Exception, ushort)
Creates a terminal exception with the specified message, inner exception, and error code.
public TerminalException(string message, Exception innerException, ushort code = 500)
Parameters
TerminalException(string, ushort)
Creates a terminal exception with the specified message and error code.
public TerminalException(string message, ushort code = 500)
Parameters
Properties
Code
The HTTP-like error code for this terminal error.
public ushort Code { get; }