exception

package module
Version: v0.0.0-...-f5a6bc4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Assert ass = iota

Variables

This section is empty.

Functions

func Eat

func Eat(v ...interface{}) error

func IsNil

func IsNil(object 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

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

func NewFormat

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

func NewMany

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL