errorutil

package
v5.8.1-12 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidTransactionError = "invalid transaction handle"

Variables

This section is empty.

Functions

func CombineAllErrors

func CombineAllErrors(errs ...error) error

func CombineErrors

func CombineErrors(err1, err2 error) error

func IsFatalDuringDiscovery

func IsFatalDuringDiscovery(err error) bool

func IsTimeoutError

func IsTimeoutError(err error) bool

func WrapError

func WrapError(err error) error

Types

type CommitFailedDeadError

type CommitFailedDeadError struct {
	Inner error
}

func (*CommitFailedDeadError) Error

func (e *CommitFailedDeadError) Error() string

type ConnectionReadCanceled

type ConnectionReadCanceled struct {
	Err error
}

func (*ConnectionReadCanceled) Error

func (crc *ConnectionReadCanceled) Error() string

type ConnectionReadTimeout

type ConnectionReadTimeout struct {
	UserContext context.Context
	ReadTimeout time.Duration
	Err         error
}

func (*ConnectionReadTimeout) Error

func (crt *ConnectionReadTimeout) Error() string

type ConnectionWriteCanceled

type ConnectionWriteCanceled struct {
	Err error
}

func (*ConnectionWriteCanceled) Error

func (cwc *ConnectionWriteCanceled) Error() string

type ConnectionWriteTimeout

type ConnectionWriteTimeout struct {
	UserContext context.Context
	Err         error
}

func (*ConnectionWriteTimeout) Error

func (cwt *ConnectionWriteTimeout) Error() string

type ConnectivityError

type ConnectivityError struct {
	Inner error
}

ConnectivityError represent errors caused by the driver not being able to connect to Neo4j services, or lost connections.

func (*ConnectivityError) Error

func (e *ConnectivityError) Error() string

type PoolClosed

type PoolClosed struct {
}

func (*PoolClosed) Error

func (e *PoolClosed) Error() string

type PoolFull

type PoolFull struct {
	Servers []string
}

func (*PoolFull) Error

func (e *PoolFull) Error() string

type PoolOutOfServers

type PoolOutOfServers struct {
}

func (*PoolOutOfServers) Error

func (e *PoolOutOfServers) Error() string

type PoolTimeout

type PoolTimeout struct {
	Err     error
	Servers []string
}

func (*PoolTimeout) Error

func (e *PoolTimeout) Error() string

type ReadRoutingTableError

type ReadRoutingTableError struct {
	Err    error
	Server string
}

func (*ReadRoutingTableError) Error

func (e *ReadRoutingTableError) Error() string

type TlsError

type TlsError struct {
	Inner error
}

TlsError encapsulates all errors related to TLS connection creation This is needed since the tls package does not provide a common error type à la net.Error, and a common type is needed to properly classify the error for Testkit

func (*TlsError) Error

func (e *TlsError) Error() string

type TokenExpiredError

type TokenExpiredError struct {
	Code    string
	Message string
	// contains filtered or unexported fields
}

TokenExpiredError represent errors caused by the driver not being able to connect to Neo4j services, or lost connections.

func (*TokenExpiredError) Error

func (e *TokenExpiredError) Error() string

func (*TokenExpiredError) Unwrap

func (e *TokenExpiredError) Unwrap() error

type TransactionExecutionLimit

type TransactionExecutionLimit struct {
	Cause  string
	Errors []error
}

TransactionExecutionLimit error indicates that a retryable transaction has failed due to reaching a limit like a timeout or maximum number of attempts.

func (*TransactionExecutionLimit) Error

func (e *TransactionExecutionLimit) Error() string

type UsageError

type UsageError struct {
	Message string
}

UsageError represents errors caused by incorrect usage of the driver API. This does not include Cypher syntax (those errors will be Neo4jError).

func (*UsageError) Error

func (e *UsageError) Error() string

Jump to

Keyboard shortcuts

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