Versions in this module Expand all Collapse all v1 v1.0.0 Aug 12, 2023 Changes in this version + func FromGRPCCode(c Code, err error) error + func FromHTTPStatus(status int, err error) error + func HTTPStatus(err error) (status int, ok bool) + type AbortedError struct + Err error + func (AbortedError) GRPCCode() Code + func (AbortedError) HTTPStatus() int + func (e AbortedError) Error() string + func (e AbortedError) Unwrap() error + type AlreadyExistsError struct + Err error + func (AlreadyExistsError) GRPCCode() Code + func (AlreadyExistsError) HTTPStatus() int + func (e AlreadyExistsError) Error() string + func (e AlreadyExistsError) Unwrap() error + type CanceledError struct + Err error + func (CanceledError) GRPCCode() Code + func (CanceledError) HTTPStatus() int + func (e CanceledError) Error() string + func (e CanceledError) Unwrap() error + type Code uint32 + func GRPCCode(err error) (c Code, ok bool) + type DataLossError struct + Err error + func (DataLossError) GRPCCode() Code + func (DataLossError) HTTPStatus() int + func (e DataLossError) Error() string + func (e DataLossError) Unwrap() error + type DeadlineExceededError struct + Err error + func (DeadlineExceededError) GRPCCode() Code + func (DeadlineExceededError) HTTPStatus() int + func (e DeadlineExceededError) Error() string + func (e DeadlineExceededError) Unwrap() error + type FailedPreconditionError struct + Err error + func (FailedPreconditionError) GRPCCode() Code + func (FailedPreconditionError) HTTPStatus() int + func (e FailedPreconditionError) Error() string + func (e FailedPreconditionError) Unwrap() error + type InternalError struct + Err error + func (InternalError) GRPCCode() Code + func (InternalError) HTTPStatus() int + func (e InternalError) Error() string + func (e InternalError) Unwrap() error + type InvalidArgumentError struct + Err error + func (InvalidArgumentError) GRPCCode() Code + func (InvalidArgumentError) HTTPStatus() int + func (e InvalidArgumentError) Error() string + func (e InvalidArgumentError) Unwrap() error + type NotFoundError struct + Err error + func (NotFoundError) GRPCCode() Code + func (NotFoundError) HTTPStatus() int + func (e NotFoundError) Error() string + func (e NotFoundError) Unwrap() error + type OutOfRangeError struct + Err error + func (OutOfRangeError) GRPCCode() Code + func (OutOfRangeError) HTTPStatus() int + func (e OutOfRangeError) Error() string + func (e OutOfRangeError) Unwrap() error + type PermissionDeniedError struct + Err error + func (PermissionDeniedError) GRPCCode() Code + func (PermissionDeniedError) HTTPStatus() int + func (e PermissionDeniedError) Error() string + func (e PermissionDeniedError) Unwrap() error + type ResourceExhaustedError struct + Err error + func (ResourceExhaustedError) GRPCCode() Code + func (ResourceExhaustedError) HTTPStatus() int + func (e ResourceExhaustedError) Error() string + func (e ResourceExhaustedError) Unwrap() error + type UnauthenticatedError struct + Err error + func (UnauthenticatedError) GRPCCode() Code + func (UnauthenticatedError) HTTPStatus() int + func (e UnauthenticatedError) Error() string + func (e UnauthenticatedError) Unwrap() error + type UnavailableError struct + Err error + func (UnavailableError) GRPCCode() Code + func (UnavailableError) HTTPStatus() int + func (e UnavailableError) Error() string + func (e UnavailableError) Unwrap() error + type UnimplementedError struct + Err error + func (UnimplementedError) GRPCCode() Code + func (UnimplementedError) HTTPStatus() int + func (e UnimplementedError) Error() string + func (e UnimplementedError) Unwrap() error + type UnknownError struct + Err error + func (UnknownError) GRPCCode() Code + func (UnknownError) HTTPStatus() int + func (e UnknownError) Error() string + func (e UnknownError) Unwrap() error