errors

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 5 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)
	QueryParsingError      = ConstructNestedError("query parsing error", nil)
	DSNParseError          = ConstructNestedError("error parsing DSN", nil)
	InvalidAccountError    = ConstructNestedError(accountErrorMsg, nil)
	AsyncNotSupportedError = ConstructNestedError("async queries are not supported by this client", nil)
)

Functions

func ConstructNestedError

func ConstructNestedError(message string, err error) error

func NewStructuredError

func NewStructuredError(errorDetails []types.ErrorDetails) error

func Wrap added in v1.7.0

func Wrap(wrapper, inner error) error

Types

type StructuredError

type StructuredError struct {
	Message string
}

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