package
0.7.6
Repository: https://github.com/atomix/runtime.git
Documentation: pkg.go.dev

# Functions

Code returns the error code.
FromProto returns the given gRPC error as an Atomix error.
IsAlreadyExists checks whether the given error is a AlreadyExists error.
IsCanceled checks whether the given error is an Canceled error.
IsConflict checks whether the given error is a Conflict error.
IsFault checks whether the given error is a Fault error.
IsForbidden checks whether the given error is a Forbidden error.
IsInternal checks whether the given error is an Internal error.
IsInvalid checks whether the given error is an Invalid error.
IsNotFound checks whether the given error is a NotFound error.
IsNotSupported checks whether the given error is a NotSupported error.
IsTimeout checks whether the given error is a Timeout error.
IsType checks whether the given error is of the given type.
IsUnauthorized checks whether the given error is a Unauthorized error.
IsUnavailable checks whether the given error is an Unavailable error.
IsUnknown checks whether the given error is an Unknown error.
New creates a new typed error.
NewAlreadyExists returns a new AlreadyExists error.
NewCanceled returns a new Canceled error.
NewConflict returns a new Conflict error.
NewFault returns a new Fault error.
NewForbidden returns a new Forbidden error.
NewInternal returns a new Internal error.
NewInvalid returns a new Invalid error.
NewNotFound returns a new NotFound error.
NewNotSupported returns a new NotSupported error.
NewTimeout returns a new Timeout error.
NewUnauthorized returns a new Unauthorized error.
NewUnavailable returns a new Unavailable error.
NewUnknown returns a new Unknown error.
ToProto returns the given error as a gRPC error.
TypeOf returns the type of the given error.

# Constants

AlreadyExists indicates a resource already exists.
Canceled indicates a request context was canceled.
Conflict indicates a conflict occurred during concurrent modifications to a resource.
Fault indicates a data fault occurred.
Forbidden indicates the operation requested to be performed on a resource is forbidden.
Internal indicates an unexpected internal error occurred.
Invalid indicates a message or request is invalid.
NotFound indicates a resource was not found.
NotSupported indicates a method is not supported.
Timeout indicates a request timed out.
Unauthorized indicates access to a resource is not authorized.
Unavailable indicates a service is not available.
Unknown is an unknown error type.

# Structs

TypedError is an typed error.

# Type aliases

Type is an error type.