errors

package
v0.12.0-k8s-deployment... Latest Latest
Warning

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

Go to latest
Published: Jul 15, 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

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