Documentation ¶
Index ¶
- Variables
- func As(err error, target any) bool
- func Is(err, target error) bool
- func OSErrorFormater(err error) error
- func RequestErrorsFormater(err error) string
- func ValidationErrorsFormater(errs validator.ValidationErrors) error
- type Error
- type FileNotFoundError
- type InvalidFileError
- type TypeError
- type ValidationErrors
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func OSErrorFormater ¶
func RequestErrorsFormater ¶
func ValidationErrorsFormater ¶
func ValidationErrorsFormater(errs validator.ValidationErrors) error
Types ¶
type FileNotFoundError ¶
type FileNotFoundError struct { FileName string // contains filtered or unexported fields }
func NewFileNotFoundError ¶
func NewFileNotFoundError(fileName string, err error) *FileNotFoundError
func (*FileNotFoundError) Error ¶
func (e *FileNotFoundError) Error() string
func (*FileNotFoundError) Unwrap ¶
func (e *FileNotFoundError) Unwrap() error
type InvalidFileError ¶
type InvalidFileError struct { FileName string // contains filtered or unexported fields }
func NewInvalidFileError ¶
func NewInvalidFileError(fileName string, err error) *InvalidFileError
func (*InvalidFileError) Error ¶
func (e *InvalidFileError) Error() string
func (*InvalidFileError) Unwrap ¶
func (e *InvalidFileError) Unwrap() error
type TypeError ¶
type TypeError struct { Expected string Received string Field string // contains filtered or unexported fields }
func NewTypeError ¶
type ValidationErrors ¶
type ValidationErrors struct { MapErrors map[string]string // contains filtered or unexported fields }
func NewValidationErrors ¶
func NewValidationErrors(errsMap map[string]string, errs validator.ValidationErrors) *ValidationErrors
func (*ValidationErrors) Error ¶
func (errs *ValidationErrors) Error() string
func (*ValidationErrors) Unwrap ¶
func (errs *ValidationErrors) Unwrap() error
Click to show internal directories.
Click to hide internal directories.