package
2.85.0+incompatible
Repository: https://github.com/transcom/mymove.git
Documentation: pkg.go.dev
# Functions
NewBadDataError creates a new BadDataError error.
NewConflictError returns an error for when a struct can not be found.
NewContextError creates an error for a problem with the context.
NewEventError returns a new EventError.
NewForbiddenError returns an error for forbidden.
NewImplementationError creates an error for some unimplemented functionality.
NewSessionError returns a new InternalServerError.
NewInvalidCreateInputError returns an error for invalid input.
NewInvalidInputError returns an error for invalid input.
NewNotFoundError returns an error for when a struct can not be found.
NewNotImplementedError creates an error for some unimplemented functionality.
NewNotFoundError returns an error for when a struct can not be found.
NewNotFoundError returns an error for when a struct can not be found.
NewPreconditionFailedError returns an error for a failed precondition.
NewQueryError returns an error on a query to the database It will create a default error message based on the objectType You can override the default message with the msgOverride param.
NewSessionError returns a new SessionError.
NewUnprocessableEntityError returns a new UnprocessableEntityError.
NewUnsupportedPostalCodeError creates an error for when we don't have the data to support a given postal code.
NewUnsupportedPostalCodeError creates an error for when we don't have the data to support a given postal code.
NewUpdateError returns an error for when a service cannot be updated.
# Constants
BadDataCode catches errors that are due to bad data being sent and is specifically not a server side error.
UnsupportedPortCode happens when we don't have the data to support a given postal code.
UnsupportedPostalCode happens when we don't have the data to support a given postal code.
# Structs
BadDataError is the custom error type (exported for type checking).
ConflictError is returned when a given struct is not found.
ContextError is returned when there was an issue with the context passed into a function (Often an environment error).
EventError is an error generated in the events/notifications system.
ForbiddenError is the forbidden error.
ImplementationError is returned when a type or function has been implemented incorrectly (Typically a dev error).
Generic InternalServerError for internal errors that aren't covered by other, more specific errors.
InvalidCreateInputError is returned when an update fails a validation rule.
InvalidInputError is returned when an update fails a validation rule.
NotFoundError is returned when a given struct is not found.
NotImplementedError is returned when some functionality is not yet implemented.
No description provided by the author
No description provided by the author
PreconditionFailedError is the precondition failed error.
QueryError is returned when a query in the database failed.
We should log Session Errors generated in the Handlers.
We should log Unprocessable Entity Errors generated in the Handlers.
UnsupportedPortCodeError is the custom error type (exported for type checking).
UnsupportedPostalCodeError is the custom error type (exported for type checking).
UpdateError is returned when a service cannot be updated.
# Interfaces
Error is used for handling errors from the Route package.
# Type aliases
ErrorCode contains error codes for the route package.