exception

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 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 Catch

type Catch func(Error)

type Error

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

func Inspect

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

func New

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

func NewErrorFromDeep

func NewErrorFromDeep(v interface{}, deep int) Error

func NewFormat

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

func NewStackErrorFromDeep

func NewStackErrorFromDeep(v interface{}, deep int) Error

type Finally

type Finally func(Error)

Jump to

Keyboard shortcuts

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