errors

package
v0.0.0-...-fa32389 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfrastructureError

type InfrastructureError struct {
	Message string
	Cause   error
}

InfrastructureError represents an Infrastructure error such as database connection, HTTP request errors etc

func NewInfrastructureError

func NewInfrastructureError(message string, cause error) *InfrastructureError

func (*InfrastructureError) Error

func (e *InfrastructureError) Error() string

type NotFoundError

type NotFoundError struct {
	Message string
}

NotFoundError represents a not found error

func NewNotFoundError

func NewNotFoundError(message string) *NotFoundError

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type PermissionDeniedError

type PermissionDeniedError struct {
	Message string
	Cause   error
}

PermissionDeniedError represents a permission denied error. It indicates the caller does not have permission to execute the specified operation

func NewPermissionDeniedError

func NewPermissionDeniedError(message string, cause error) *PermissionDeniedError

func (*PermissionDeniedError) Error

func (e *PermissionDeniedError) Error() string

type ValidationError

type ValidationError struct {
	Message   string
	FieldName string
}

ValidationError represents a data validation error

func NewValidationError

func NewValidationError(message, fieldName string) *ValidationError

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL