cberrors

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 1 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorProvider

type ErrorProvider interface {
	Error(e error)
	Recover(e interface{})
	Defer()
}

type ErrorsContainer

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

func NewErrorContainer

func NewErrorContainer(providers ...ErrorProvider) *ErrorsContainer

func (*ErrorsContainer) AddProvider

func (c *ErrorsContainer) AddProvider(provider ErrorProvider)

func (*ErrorsContainer) Error

func (c *ErrorsContainer) Error(e error)

func (*ErrorsContainer) MainDefer

func (c *ErrorsContainer) MainDefer()

func (*ErrorsContainer) Recover

func (c *ErrorsContainer) Recover()

func (*ErrorsContainer) Suppress

func (c *ErrorsContainer) Suppress()

func (*ErrorsContainer) Unsupress

func (c *ErrorsContainer) Unsupress()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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