errors

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OPError

type OPError struct {
	HttpCode int
	Message  string
	Code     int
	Scope    Scope
}

func NewBusinessError

func NewBusinessError(code int, message string, httpCodes ...int) *OPError

func NewOpError

func NewOpError(code int, message string, scope Scope, httpCode int) *OPError

func NewSystemOPError

func NewSystemOPError(code int, message string, httpCodes ...int) *OPError

func (OPError) Error

func (O OPError) Error() string

type Scope

type Scope int
const (
	ScopeSystem   Scope = 1
	ScopeBusiness Scope = 2
)

Jump to

Keyboard shortcuts

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