errors

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthenticationError = ConstructNestedError("authentication error", nil)
	AuthorizationError  = ConstructNestedError("authorization error", nil)
	QueryExecutionError = ConstructNestedError("query execution error", nil)
	DSNParseError       = ConstructNestedError("error parsing DSN", nil)
	InvalidAccountError = ConstructNestedError(accountErrorMsg, nil)
)

Functions

func ConstructNestedError

func ConstructNestedError(message string, err error) error

func Wrap added in v1.7.0

func Wrap(wrapper, inner error) error

Types

type StructuredError

type StructuredError struct {
	Message string
}

func NewStructuredError

func NewStructuredError(errorDetails []types.ErrorDetails) *StructuredError

func (StructuredError) Error

func (e StructuredError) Error() string

Jump to

Keyboard shortcuts

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