package
0.0.0-20241122232756-5abfebf3a4ab
Repository: https://github.com/terrapi-solution/controller.git
Documentation: pkg.go.dev

# Functions

NewConflict returns an Error with a CONFLICT error code.
NewE returns an Error with the DefaultCode.
NewForbidden returns an Error with a FORBIDDEN error code.
NewInternal returns an Error with a INTERNAL error code.
NewInvalid returns an Error with a INVALID error code.
NewNotFound returns an Error with a NOTFOUND error code.
NewUnauthorized returns an Error with a UNAUTHORIZED error code.
NewUnknown returns an Error with a UNKNOWN error code.
ToError Returns an application error from input.

# Constants

CONFLICT - An action cannot be performed.
FORBIDDEN - User is forbidden from performing an action.
INTERNAL - Error within the application.
INVALID - Validation failed.
NOTFOUND - Entity does not exist.
UNAUTHORIZED - User is not authorized.
UNKNOWN - Application unknown error.

# Variables

DefaultCode is the default code returned when none is specified.
GlobalError is a general message when no error message has been found.

# Structs

Error defines a standard application error.