package
0.28.0
Repository: https://github.com/solarisdb/solaris.git
Documentation: pkg.go.dev

# Functions

EmbedObject allows to add json-marshaled version of the object o into the error err and returns the new error.
ExtractObject allows to extract value for the object o from the error err if its embedded version is there.
FromGRPCError receives a gRPC error (code-based) and returns the one of the general errors (ErrNotFound, ErrClosed...).
FromGRPCErrorMsg receives a gRPC status error message.
GRPCStatusCode returns the gRPC error status code by the error provided.
GRPCWrap allows to get an error and wrap it to the grpc response error.
Is reports whether any error in err's chain matches target, OR if the err is a gRPC code-based error, it tries to match the reported gRPC code corresponds to the target.

# Variables

ErrCanceled indicates that the execution was cancelled.
ErrClosed - the error is in the acquire cloud namespace, it covers the wider class objects including os.ErrClosed (fs.ErrClosed).
ErrCommunication - the error indicates any problem with the components' communication in the distributed system.
ErrConflict - the error indicates any problem related to data or request conflict, for instance, version conflict.
DataLoss indicates unrecoverable data loss or corruption.
ErrExhausted - the error indicates that the request or response entity is larger than limits defined by the server.
ErrExist - the error is in the acquire cloud namespace, it covers the wider class objects including os.ErrExist (fs.ErrExist).
ErrInternal - any error which doesn't covered by other class of errors provided here.
ErrInvalid indicates that the passed data has not accepted format and cannot be processed due to violation of some contract.
ErrNotAuthorized - the error is in the acquire cloud namespace, and it's returned when permission is denied for user to access requested action.
ErrNotExist - the error is in the acquire cloud namespace, it covers the wider class objects including os.ErrNotExist (fs.ErrNotExist).
Unimplemented indicates operation is not implemented or not supported/enabled in this function/service.