package
0.0.0-20240619025429-39f3c58cbb48
Repository: https://github.com/camelhr/camelhr-api.git
Documentation: pkg.go.dev

# Functions

ErrorCause sets the cause to the API error.
ErrorHTTPStatus sets the http status code to the API error.
IsAPIError checks if the given error is an API error.
IsInputValidationError checks if the given error is a validation error.
IsNotFoundError checks if the given error is a not found error.
NewAPIError creates a new API error with the given message and options.
NewInputValidationError creates a new validation error with the given message.
NewNotFoundError creates a new not found error with the given message.
No description provided by the author
Validator returns a new instance of the validator.
WrapError wraps the given error.

# Structs

No description provided by the author
InputValidationError is an error type that represents a validation error.
NotFoundError is an error type that represents a not found error.
Timestamps is a struct that contains the timestamps for a record.

# Type aliases

APIErrorOption is a function that modifies an property of an API error.