errors

package
v0.0.0-...-8aa12d4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotEnabled = NewDatabaseError("database not enabled", nil)
	// ErrNotFound indicates no results were found in the database
	ErrNotFound       = NewDatabaseError("not found", nil)
	ErrNotImplemented = errors.New("not implemented")
)
View Source
var (
	// ErrSessionInvalid indicates that the session could not be retreived
	ErrSessionInvalid = errors.New("invalid session")
	// ErrUserLogonFailure indicates an invalid user and/or password
	ErrUserLogonFailure = errors.New("invalid credentials")
)

Functions

This section is empty.

Types

type BroadcastError

type BroadcastError struct {
	// contains filtered or unexported fields
}

func NewBroadcastError

func NewBroadcastError(ringID int) BroadcastError

func (BroadcastError) AddError

func (e BroadcastError) AddError(err error)

func (BroadcastError) Error

func (e BroadcastError) Error() string

func (BroadcastError) Errors

func (e BroadcastError) Errors() int

type DatabaseError

type DatabaseError struct {
	// contains filtered or unexported fields
}

func AuthenticationError

func AuthenticationError(err error) DatabaseError

func ConnectionError

func ConnectionError(err error) DatabaseError

func NewDatabaseError

func NewDatabaseError(msg string, err error) DatabaseError

func (DatabaseError) Error

func (e DatabaseError) Error() string

type EventError

type EventError struct {
	// contains filtered or unexported fields
}

func NewEventError

func NewEventError(eventID int) EventError

func (EventError) Error

func (e EventError) Error() string

type HttpError

type HttpError struct {
	Code    int
	Message string
	Err     error
}

func NewBadRequest

func NewBadRequest(err error) HttpError

func NewForbiddenError

func NewForbiddenError() HttpError

func NewInternalError

func NewInternalError(err error) HttpError

func NewNotFoundError

func NewNotFoundError() HttpError

func (HttpError) Error

func (e HttpError) Error() string

type RingError

type RingError struct {
	// contains filtered or unexported fields
}

func NewRingError

func NewRingError(ringID int) RingError

func (RingError) Error

func (e RingError) Error() string

type TypeCastError

type TypeCastError struct {
	// contains filtered or unexported fields
}

func NewTypeCastError

func NewTypeCastError(varName, typeName string) TypeCastError

func (TypeCastError) Error

func (e TypeCastError) Error() string

Jump to

Keyboard shortcuts

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