xerror

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FatalError

type FatalError struct {
	Message    string
	WrappedErr error
}

func NewFatalError

func NewFatalError(message string) *FatalError

func NewFatalErrorf

func NewFatalErrorf(format string, a ...any) *FatalError

func (*FatalError) Error

func (e *FatalError) Error() string

func (*FatalError) Unwrap

func (e *FatalError) Unwrap() error

func (*FatalError) Wrap

func (e *FatalError) Wrap(err error) *FatalError

type RuntimeError

type RuntimeError struct {
	Message    string
	WrappedErr error
}

func NewRuntimeError

func NewRuntimeError(message string) *RuntimeError

func NewRuntimeErrorf

func NewRuntimeErrorf(format string, a ...any) *RuntimeError

func (*RuntimeError) Error

func (e *RuntimeError) Error() string

func (*RuntimeError) Unwrap

func (e *RuntimeError) Unwrap() error

func (*RuntimeError) Wrap

func (e *RuntimeError) Wrap(err error) *RuntimeError

Jump to

Keyboard shortcuts

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