errors

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalError = NewError(http.StatusInternalServerError, "Server Internal Error")
View Source
var TaskCanceled = fmt.Errorf("task got canceled")

Deprecated: use ctx.Err() instead

Functions

This section is empty.

Types

type Error

type Error struct {
	Status  int
	Message string
}

func NewError

func NewError(status int, message string) *Error

func NewNotFound

func NewNotFound(message string) *Error

func (*Error) Code

func (e *Error) Code() int

func (*Error) Error

func (e *Error) Error() string

type SubTaskError

type SubTaskError struct {
	SubTaskName string
	Message     string
}

func (*SubTaskError) Error

func (e *SubTaskError) Error() string

func (*SubTaskError) GetSubTaskName

func (e *SubTaskError) GetSubTaskName() string

Jump to

Keyboard shortcuts

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