errors

package
v0.13.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalError = NewError(http.StatusInternalServerError, "Server Internal Error")

Functions

func IsNotFound added in v0.13.0

func IsNotFound(err error) bool

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