_exception

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BadRequest = BlockError{Code: 400, Description: "request is invalid"}
View Source
var DBError = BlockError{Code: 500, Description: "DB got an exception."}
View Source
var ERR_OK = 200
View Source
var InternalError = BlockError{Code: 500, Description: "Internal error. Please retry"}
View Source
var NoError = BlockError{Code: ERR_OK}
View Source
var NoSuchBackend = BlockError{Code: 404, Description: "The specified backend does not exists."}
View Source
var NoSuchType = BlockError{Code: 404, Description: "The specified backend type does not exists."}

Functions

This section is empty.

Types

type BlockError

type BlockError struct {
	Code        int
	Description string
}

func (*BlockError) Error

func (err *BlockError) Error() error

Jump to

Keyboard shortcuts

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