Class OpenShellException
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
The error type thrown by every SDK operation.
public class OpenShellException : Exception, ISerializable
- Inheritance
-
OpenShellException
- Implements
- Derived
- Inherited Members
Constructors
OpenShellException(OpenShellErrorKind, string, Exception?)
Creates an exception of the given kind.
public OpenShellException(OpenShellErrorKind kind, string message, Exception? innerException = null)
Parameters
kindOpenShellErrorKindmessagestringinnerExceptionException
Properties
ErrorInfo
The server-provided reason, domain, and metadata, when the gateway sent them.
public ErrorInfo? ErrorInfo { get; }
Property Value
FieldViolations
The request fields the gateway rejected; empty when it sent none.
public IReadOnlyList<FieldViolation> FieldViolations { get; }
Property Value
GrpcStatusCode
The underlying gRPC status, when the error came from the gateway.
public StatusCode? GrpcStatusCode { get; }
Property Value
IsAlreadyExists
True for AlreadyExists.
public bool IsAlreadyExists { get; }
Property Value
IsConflict
True for Conflict.
public bool IsConflict { get; }
Property Value
IsNotFound
True for NotFound.
public bool IsNotFound { get; }
Property Value
IsTransient
True for errors that may succeed on retry.
public bool IsTransient { get; }
Property Value
Kind
The error classification.
public OpenShellErrorKind Kind { get; }
Property Value
RetryDelay
The delay the gateway suggested before trying again. It says nothing about whether repeating a mutation is safe; use a request id for that.
public TimeSpan? RetryDelay { get; }