perror

package
v0.1.108 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Exception panic as exception

func New

func New(status int, msg ...interface{}) *Error

NewPError create new error with status and message

func (*Error) Error

func (p *Error) Error() string

Error implement error interface

func (*Error) Message

func (p *Error) Message() string

GetMessage get exception message string

func (*Error) Status

func (p *Error) Status() int

GetStatus get exception status code

Jump to

Keyboard shortcuts

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