syserr

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInternalError

func NewInternalError(err error) error

func NewRPCError

func NewRPCError(err error) error

Types

type BaseCustomError

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

BaseCustomError is the base error for custom errors

func (BaseCustomError) Error

func (e BaseCustomError) Error() string

func (BaseCustomError) Unwrap

func (e BaseCustomError) Unwrap() error

type InternalError

type InternalError struct {
	*BaseCustomError
}

InternalError is the implementation of the SystemError interface that's used for system consumption only represents errors at the enclave layer

func (InternalError) Is

func (e InternalError) Is(target error) bool

type RPCError

type RPCError struct {
	*BaseCustomError
}

RPCError is the implementation of the SystemError interface that's used for system consumption only represents errors at the RPC layer

func (RPCError) Is

func (e RPCError) Is(target error) bool

Jump to

Keyboard shortcuts

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