errors

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 1 Imported by: 60

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseError

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

BaseError provides a base template for more package-specific errors

func New

func New(code ErrorCode, msg ...string) BaseError

func (BaseError) Code

func (err BaseError) Code() int

func (BaseError) Error

func (err BaseError) Error() string

Error returns an error string to implement the error interface

type ErrorCode

type ErrorCode uint32

ErrorType serves as error code for the error enum

const (
	EndOfIteratorError ErrorCode = iota + 1
	HandlerError
	ObservableError
	ObserverError
	IterableError
	UndefinedError
)

func (ErrorCode) String

func (i ErrorCode) String() string

Jump to

Keyboard shortcuts

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