package
0.0.0-20241130001046-e13ab8da91b6
Repository: https://github.com/foundation-go/foundation.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewInsufficientScopeAllError creates an error for cases where all the expected scopes are required.
NewInsufficientScopeAnyError creates an error for cases where any of the expected scopes is required.
NewInternalError creates a generic internal error.
NewInvalidArgumentError creates an invalid argument error with error details.
NewNotFoundError creates a not found error.
NewPermissionDeniedError creates a permission denied error.
NewStaleObjectError creates a stale object error.
NewUnauthenticatedError creates an unauthenticated error.

# Constants

ErrorCodeAccepted - Must be accepted.
ErrorCodeBlank - Can't be blank.
ErrorCodeEmpty - Can't be empty.
ErrorCodeEven - Must be even.
ErrorCodeExclusion - Is reserved.
ErrorCodeInclusion - Is not included in the list.
ErrorCodeInvalid - Is invalid.
ErrorCodeNotAnInteger - Must be an integer.
ErrorCodeNotANumber - Is not a number.
ErrorCodeOdd - Must be odd.
ErrorCodePresent - Must be blank.
ErrorCodeRequired - Must exist.
ErrorCodeTaken - Has already been taken.

# Structs

BaseError is the base error type for all errors in the Foundation framework.
InternalError describes an internal error.
InvalidArgumentError describes an invalid argument error.
NotFoundError describes a not found error.
PermissionDeniedError describes a permission denied error.
StaleObjectError describes a stale object error.
UnauthenticatedError describes an unauthenticated error.

# Interfaces

FoundationError describes an interface for all errors in the Foundation framework.

# Type aliases

ErrorCode describes an error code.
ErrorViolations describes a map of field names to error codes.