custom_error

package
v0.0.0-...-16fd4a1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseError

type BaseError struct {
	Message            string `json:"error"`
	InternalMessage    string `json:"internal_error"`
	DescriptionMessage string `json:"description"`
	// contains filtered or unexported fields
}

func NewBaseError

func NewBaseError(err error, messages ...string) *BaseError

func (*BaseError) Description

func (b *BaseError) Description() string

func (*BaseError) Error

func (b *BaseError) Error() string

func (*BaseError) InternalError

func (b *BaseError) InternalError() string

func (*BaseError) LockedClient

func (b *BaseError) LockedClient() bool

func (*BaseError) LockedClientId

func (b *BaseError) LockedClientId() bool

func (*BaseError) SetLocks

func (b *BaseError) SetLocks(clientIdLock, clientLock bool)

type BaseErrorAdapter

type BaseErrorAdapter interface {
	Error() string
	Description() string
	InternalError() string
	LockedClientId() bool
	LockedClient() bool
	SetLocks(clientIdLock, clientLock bool)
}

Jump to

Keyboard shortcuts

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