package
0.0.0-20250307145209-c3a19bf62e49
Repository: https://github.com/ardanlabs/service.git
Documentation: pkg.go.dev

# Functions

Check validates the provided model against it's declared tags.
New constructs an error based on an app error.
NewError checks for an Error in the error interface value.
Newf constructs an error based on a error message.
NewFieldErrors creates a field errors.

# Variables

Aborted indicates the operation was aborted, typically due to a concurrency issue like sequencer check failures, transaction aborts, etc.
AlreadyExists means an attempt to create an entity failed because one already exists.
Canceled indicates the operation was canceled (typically by the caller).
DataLoss indicates unrecoverable data loss or corruption.
DeadlineExceeded means operation expired before completion.
FailedPrecondition indicates operation was rejected because the system is not in a state required for the operation's execution.
Internal errors.
InternalOnlyLog errors.
InvalidArgument indicates client specified an invalid argument.
NoContent indicates the operation was successful with no content.
NotFound means some requested entity (e.g., file or directory) was not found.
OK indicates the operation was successful.
OutOfRange means operation was attempted past the valid range.
PermissionDenied indicates the caller does not have permission to execute the specified operation.
ResourceExhausted indicates some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space.
TooManyRequests indicates that the client has made too many requests and exceeded their rate limit and/or quota and must wait before making futhur requests.
Unauthenticated indicates the request does not have valid authentication credentials for the operation.
Unavailable indicates the service is currently unavailable.
Unimplemented indicates operation is not implemented or not supported/enabled in this service.
Unknown error.

# Structs

ErrCode represents an error code in the system.
Error represents an error in the system.
FieldError is used to indicate an error with a specific request field.

# Type aliases

FieldErrors represents a collection of field errors.