errors

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 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")

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 (*Error) Code

func (e *Error) Code() int

func (*Error) Error

func (e *Error) Error() string

type SubTaskError added in v0.8.0

type SubTaskError struct {
	SubTaskName string
	Message     string
}

func (*SubTaskError) Error added in v0.8.0

func (e *SubTaskError) Error() string

func (*SubTaskError) GetSubTaskName added in v0.8.0

func (e *SubTaskError) GetSubTaskName() string

Jump to

Keyboard shortcuts

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