errors

package
v0.0.0-...-38b1c69 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 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 DeclaredError

type DeclaredError interface {
	Type() Type
}

type ErrNotAuthenticated

type ErrNotAuthenticated struct{}

general application errors

func (*ErrNotAuthenticated) Error

func (e *ErrNotAuthenticated) Error() string

func (*ErrNotAuthenticated) Type

func (e *ErrNotAuthenticated) Type() Type

type ErrTimeoutExceeded

type ErrTimeoutExceeded struct {
}

func (*ErrTimeoutExceeded) Error

func (e *ErrTimeoutExceeded) Error() string

func (*ErrTimeoutExceeded) Type

func (e *ErrTimeoutExceeded) Type() Type

type ErrorNotImplemented

type ErrorNotImplemented struct {
}

func (*ErrorNotImplemented) Error

func (e *ErrorNotImplemented) Error() string

func (*ErrorNotImplemented) Type

func (e *ErrorNotImplemented) Type() Type

type InternalError

type InternalError struct {
	Message string
	Layer   string
}

func (*InternalError) Error

func (e *InternalError) Error() string

type Layer

type Layer string
const (
	Repo     Layer = "Repository"
	Usecase  Layer = "Usecase"
	Delivery Layer = "Delivery"
)

type Type

type Type uint8
const (
	ErrNotFound Type
	ErrAlreadyExists
	ErrInvalidInput
	ErrNoAccess
	ErrNoAuth
	ErrNotImplemented
	ErrTimeout
)

Jump to

Keyboard shortcuts

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