errors

package
v5.2.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Eunknown int8 = iota
	Efatal
	Eerror
	Ewarning
)

Error severity codes

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCode

type ErrorCode uint32

ErrorCode represents the error code returned by the avatica server

type RPCMetadata

type RPCMetadata struct {
	ServerAddress string
}

RPCMetadata contains metadata about the call that caused the error.

type ResponseError

type ResponseError struct {
	Exceptions    []string
	HasExceptions bool
	ErrorMessage  string
	Severity      int8
	ErrorCode     ErrorCode
	SqlState      SQLState
	Metadata      *RPCMetadata
	Name          string
}

ResponseError is an error type that contains detailed information on what caused the server to return an error.

func (ResponseError) Error

func (r ResponseError) Error() string

type SQLState

type SQLState string

SQLState represents the SQL code returned by the avatica server

Jump to

Keyboard shortcuts

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