errors

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 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 ErrPermission

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

func NewPermissionError

func NewPermissionError(e error) *ErrPermission

NewPermissionError returns a warpped ErrPermission

func (*ErrPermission) ErrCode

func (e *ErrPermission) ErrCode() model.ErrorCode

func (*ErrPermission) Error

func (e *ErrPermission) Error() string

func (*ErrPermission) Unwrap

func (e *ErrPermission) Unwrap() error

type ErrRuntime

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

func NewRuntimeError

func NewRuntimeError(e error) *ErrRuntime

NewRuntimeError returns a warpped ErrRuntime

func (*ErrRuntime) ErrCode

func (e *ErrRuntime) ErrCode() model.ErrorCode

func (*ErrRuntime) Error

func (e *ErrRuntime) Error() string

func (*ErrRuntime) Unwrap

func (e *ErrRuntime) Unwrap() error

type ErrTaskFailed

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

func NewTaskFailelError

func NewTaskFailelError(e error) *ErrTaskFailed

NewTaskFailelError returns a warpped ErrTaskFailed

func (*ErrTaskFailed) ErrCode

func (e *ErrTaskFailed) ErrCode() model.ErrorCode

func (*ErrTaskFailed) Error

func (e *ErrTaskFailed) Error() string

func (*ErrTaskFailed) Unwrap

func (e *ErrTaskFailed) Unwrap() error

type ErrTimeout

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

func NewTimeoutError

func NewTimeoutError(e error) *ErrTimeout

NewTimeoutError returns a warpped ErrTimeout

func (*ErrTimeout) ErrCode

func (e *ErrTimeout) ErrCode() model.ErrorCode

func (*ErrTimeout) Error

func (e *ErrTimeout) Error() string

func (*ErrTimeout) Unwrap

func (e *ErrTimeout) Unwrap() error

type Error

type Error interface {
	Error() string
	Unwrap() error
	ErrCode() model.ErrorCode
}

Jump to

Keyboard shortcuts

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