...

Package errors

Overview ▾

Package errors contains error wrappers and creators used for precise error messaging in the jbig2 package.

func Error

func Error(processName, message string) error

Error returns an error wrapped with provided 'process' and with given 'message'.

func Errorf

func Errorf(processName, message string, arguments ...interface{}) error

Errorf returns an error with provided message, arguments and process name.

func Wrap

func Wrap(err error, processName, message string) error

Wrap wraps the error with the message and provided process.

func Wrapf

func Wrapf(err error, processName, message string, arguments ...interface{}) error

Wrapf wraps the error with the formatted message and arguments.