errorx

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 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 DatabaseError

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

DatabaseError - General App Error.

func NewDatabaseError

func NewDatabaseError(msg string, args ...any) *DatabaseError

NewDatabaseError - GeneralError constructor.

func NewDatabaseErrorWrapper

func NewDatabaseErrorWrapper(err error, msg string, args ...any) *DatabaseError

NewDatabaseErrorWrapper - GeneralError constructor for wrapper of another error.

func (*DatabaseError) Error

func (ge *DatabaseError) Error() string

Error - return the error string.

type GeneralError

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

GeneralError - General App Error.

func NewGeneralError

func NewGeneralError(msg string, args ...any) *GeneralError

NewGeneralError - GeneralError constructor.

func NewGeneralErrorWrapper

func NewGeneralErrorWrapper(err error, msg string, args ...any) *GeneralError

NewGeneralErrorWrapper - GeneralError constructor for wrapper of another error.

func (*GeneralError) Error

func (ge *GeneralError) Error() string

Error - return the error string.

Jump to

Keyboard shortcuts

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