Documentation ¶
Index ¶
- Variables
- type DriverErr
- func NewConnectionFailedError(url url.URL, err error) DriverErr
- func NewCouldNotGetOsUser(err error) DriverErr
- func NewDriverErr(error *exaerror.ExaError) DriverErr
- func NewDriverErrWithCause(error *exaerror.ExaError, cause error) DriverErr
- func NewErrCertificateFingerprintMismatch(actualFingerprint, expectedFingerprint string) DriverErr
- func NewErrCouldNotAbort(rootCause error) DriverErr
- func NewFileNotFound(path string) DriverErr
- func NewInvalidArgType(value interface{}, expectedType string) DriverErr
- func NewInvalidConnectionString(connectionString string) DriverErr
- func NewInvalidConnectionStringHostOrPort(connectionString string) DriverErr
- func NewInvalidConnectionStringInvalidIntParam(paramName, value string) DriverErr
- func NewInvalidConnectionStringInvalidParameter(parameter string) DriverErr
- func NewInvalidConnectionStringInvalidPort(port string) DriverErr
- func NewInvalidHostRangeLimits(host string) DriverErr
- func NewJsonDecodingError(err error, message []byte) DriverErr
- func NewMarshallingError(request interface{}, err error) DriverErr
- func NewPasswordEncryptionError(err error) DriverErr
- func NewReceivingError(err error) DriverErr
- func NewRequestSendingError(err error) DriverErr
- func NewSqlErr(sqlCode string, msg string) DriverErr
- func NewUncompressingError(err error) DriverErr
- func NewWebsocketNotConnected(request interface{}) DriverErr
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidConn = NewDriverErr(exaerror.New("E-EGOD-1").Message("invalid connection")) ErrClosed = NewDriverErr(exaerror.New("E-EGOD-2").Message("connection was closed")) ErrMalformedData = NewDriverErr(exaerror.New("E-EGOD-3").Message("malformed empty result")) ErrAutocommitEnabled = NewDriverErr(exaerror.New("E-EGOD-4").Message("begin not working when autocommit is enabled")) ErrInvalidValuesCount = NewDriverErr(exaerror.New("E-EGOD-5").Message("invalid value count for prepared status")) ErrNoLastInsertID = NewDriverErr(exaerror.New("E-EGOD-6").Message("no LastInsertId available")) ErrNamedValuesNotSupported = NewDriverErr(exaerror.New("E-EGOD-7").Message("named parameters not supported")) ErrLoggerNil = NewDriverErr(exaerror.New("E-EGOD-8").Message("logger is nil")) ErrMissingServerCertificate = NewDriverErr(exaerror.New("E-EGOD-9"). Message("server did not return certificates")) ErrInvalidProxyConn = NewDriverErr(exaerror.New("E-EGOD-26"). Message("could not create proxy connection to import file")) ErrInvalidImportQuery = NewDriverErr(exaerror.New("E-EGOD-27"). Message("could not parse import query")) )
Various errors the driver might return. Can change between driver versions.
Functions ¶
This section is empty.
Types ¶
type DriverErr ¶
type DriverErr struct {
// contains filtered or unexported fields
}
DriverErr This type represents an error that can occur when working with a database connection.
func NewCouldNotGetOsUser ¶
func NewDriverErr ¶
func NewDriverErrWithCause ¶ added in v1.0.9
func NewErrCouldNotAbort ¶
func NewFileNotFound ¶
func NewInvalidArgType ¶ added in v1.0.8
func NewJsonDecodingError ¶
func NewMarshallingError ¶
func NewReceivingError ¶
func NewRequestSendingError ¶
func NewUncompressingError ¶
func NewWebsocketNotConnected ¶ added in v1.0.2
func NewWebsocketNotConnected(request interface{}) DriverErr
Click to show internal directories.
Click to hide internal directories.