Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InternalServerError = errors.New("Internal Server Error") NotFound = errors.New("Not Found") RequestTimeoutError = errors.New("Request Timeout") CannotBindGivenData = errors.New("Could not bind given data") ValidationError = errors.New("Validation failed for given payload") UniqueError = errors.New("Item should be unique on database") GivenAssociationNotFound = errors.New("Given association not found") RequiredFieldError = errors.New("Required field is missing") InvalidUUIDFormat = errors.New("Invalid UUID format") InvalidIdentificationNumber = errors.New("Invalid identification number") InvalidPhoneNumber = errors.New("Invalid phone number") LocationNoAvailable = errors.New("Location is not available") InvalidEnumsValue = errors.New("Invalid enums value") InvalidDateTime = errors.New("Invalid date time") InvalidDropOffDate = errors.New("Drop off date must be after pick up date") InvalidEmail = errors.New("Invalid email") DriverAgeNotValid = errors.New("Driver age is not valid") CarNotFoundError = errors.New("Car not found") LocationIsNotAvailable = errors.New("Location is not available") LocationNotFoundError = errors.New("Location not found") OfficeNotFoundError = errors.New("Office not found") DropoffOfficeNotAvailableError = errors.New("Drop off Office is not available") PickupOfficeNotAvailableError = errors.New("Pick up Office is not available") )
Functions ¶
func ErrorResponse ¶
Types ¶
type RestErr ¶
func NewInternalServerError ¶
func NewInternalServerError(causes interface{}) RestErr
func NewRestError ¶
func ParseErrors ¶
ParseErrors Parser of error string messages returns RestError
Click to show internal directories.
Click to hide internal directories.