errors

package
v0.0.0-...-958ef34 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* Copyright (c) 2023 Juice Technologies, Inc. All Rights Reserved.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRuntime = New("errors: runtime error")
)

Functions

func Is

func Is(err error, target error) bool

func Join

func Join(errs ...error) error

func Unwrap

func Unwrap(err error) error

Types

type Error

type Error struct {
	Message string
	Cause   error
	// contains filtered or unexported fields
}

func New

func New(a ...any) *Error

func Newf

func Newf(format string, a ...any) *Error

func (*Error) Error

func (err *Error) Error() string

func (*Error) Is

func (err *Error) Is(target error) bool

func (*Error) Unwrap

func (err *Error) Unwrap() error

func (*Error) Wrap

func (err *Error) Wrap(cause error) *Error

Jump to

Keyboard shortcuts

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