myerr

package
v0.0.0-...-87a979f Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintRStack

func PrintRStack(r interface{})

排除 MyPErr ,之外的都打印 Stack

func ReturnRStack

func ReturnRStack(r interface{}) error

除 MyPErr 之外的都带 Stack

Types

type MyPErr

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

故意 panic 方式引发错误时和系统 panic 区分开。

func NewPErr

func NewPErr(s string, a ...interface{}) *MyPErr

func (*MyPErr) Error

func (e *MyPErr) Error() string

Jump to

Keyboard shortcuts

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