package
0.0.0-20240319051850-7fd672d7a1dc
Repository: https://github.com/denisvmedia/inventario.git
Documentation: pkg.go.dev
# Functions
DoNotWrap reports whether an error should not be wrapped in the Error type from this package.
ErrorAs is a helper for the ErrorAs method of an API's portable type.
GRPCCode extracts the gRPC status code and converts it into an ErrorCode.
New returns a new error with the given code, underlying error and message.
Newf uses format and args to format a message, then calls New.
# Constants
AlreadyExists means that the resource exists, but it should not.
Canceled means that the operation was canceled.
DeadlineExceeded means that The operation timed out.
FailedPrecondition means that the system was in the wrong state.
Internal means that something unexpected happened.
InvalidArgument means that a value given to a Go CDK API is incorrect.
NotFound means that the resource was not found.
OK is returned by the Code function on a nil error.
PermissionDenied means that the caller does not have permission to execute the specified operation.
ResourceExhausted means that some resource has been exhausted, typically because a service resource limit has been reached.
Unimplemented means that the feature is not implemented.
Unknown means that the error could not be categorized.
# Type aliases
An ErrorCode describes the error's category.