errors

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessDenied = newErrTemplate(core.ErrAccessDeniedError, "28000", "Access denied for user '%s'@'%s' (using password: %s)")
)

https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html

Functions

func New

func New(code core.Code, sqlState, message string) *err

func NewWithoutSQLState

func NewWithoutSQLState(code core.Code, message string) *err

Types

type MySQLError

type MySQLError interface {
	error

	Code() core.Code
	SQLState() string
	Message() string

	Packet() *packet.ERR

	PrintClient() string
	PrintServer() string
}

MySQLError https://dev.mysql.com/doc/refman/8.0/en/error-message-elements.html

Jump to

Keyboard shortcuts

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