custom_error

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 0 Imported by: 1

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"`
}

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

type BaseErrorAdapter

type BaseErrorAdapter interface {
	Error() string
	Description() string
	InternalError() string
}

Jump to

Keyboard shortcuts

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