exception

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(v ...interface{})

func IsNil

func IsNil(i interface{}) bool

func Throw

func Throw(v interface{})

func Try

func Try(fn func()) (c *catch)

Types

type Error

type Error interface {
	Time() time.Time
	File() string
	Line() int
	Error() string
	String() string
}

func New

func New(v ...interface{}) Error

func NewException added in v1.1.5

func NewException(time time.Time, file string, line int, err string) Error

func NewFormat

func NewFormat(format string, v ...interface{}) Error

func NewMany added in v1.1.4

func NewMany(v ...interface{}) Error

Jump to

Keyboard shortcuts

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