Documentation ¶
Index ¶
- Constants
- func CombineAllErrors(errs ...error) error
- func CombineErrors(err1, err2 error) error
- func IsFatalDuringDiscovery(err error) bool
- func IsTimeoutError(err error) bool
- func WrapError(err error) error
- type CommitFailedDeadError
- type ConnectionReadCanceled
- type ConnectionReadTimeout
- type ConnectionWriteCanceled
- type ConnectionWriteTimeout
- type ConnectivityError
- type PoolClosed
- type PoolFull
- type PoolOutOfServers
- type PoolTimeout
- type ReadRoutingTableError
- type TlsError
- type TokenExpiredError
- type TransactionExecutionLimit
- type UsageError
Constants ¶
const InvalidTransactionError = "invalid transaction handle"
Variables ¶
This section is empty.
Functions ¶
func CombineAllErrors ¶
func CombineErrors ¶
func IsFatalDuringDiscovery ¶
func IsTimeoutError ¶
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 ¶
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 PoolOutOfServers ¶
type PoolOutOfServers struct { }
func (*PoolOutOfServers) Error ¶
func (e *PoolOutOfServers) Error() string
type PoolTimeout ¶
func (*PoolTimeout) Error ¶
func (e *PoolTimeout) Error() string
type ReadRoutingTableError ¶
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
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 ¶
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