errorj

package
v0.0.0-...-6d7ae92 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BeginTransactionError     = sqlError.NewSubtype("begin_transaction")
	CommitTransactionError    = sqlError.NewSubtype("commit_transaction")
	RollbackTransactionError  = sqlError.NewSubtype("rollback_transaction")
	CreateSchemaError         = sqlError.NewSubtype("create_schema")
	CreateTableError          = sqlError.NewSubtype("create_table")
	PatchTableError           = sqlError.NewSubtype("patch_table")
	GetTableError             = sqlError.NewSubtype("get_table")
	DropError                 = sqlError.NewSubtype("drop_table")
	RenameError               = sqlError.NewSubtype("rename_table")
	CreatePrimaryKeysError    = sqlError.NewSubtype("create_primary_keys")
	AlterTableError           = sqlError.NewSubtype("alter_table")
	DeletePrimaryKeysError    = sqlError.NewSubtype("delete_primary_keys")
	GetPrimaryKeysError       = sqlError.NewSubtype("get_primary_keys")
	DeleteFromTableError      = sqlError.NewSubtype("delete_from_table")
	SelectFromTableError      = sqlError.NewSubtype("select_from_table")
	ExecuteInsertInBatchError = sqlError.NewSubtype("execute_insert_in_batch")
	ExecuteInsertError        = sqlError.NewSubtype("execute_insert")
	UpdateError               = sqlError.NewSubtype("update")
	TruncateError             = sqlError.NewSubtype("truncate")
	BulkMergeError            = sqlError.NewSubtype("bulk_merge")
	LoadError                 = sqlError.NewSubtype("load")
	CopyError                 = sqlError.NewSubtype("copy")

	SaveOnStageError     = stageErr.NewSubtype("save_on_stage")
	DeleteFromStageError = stageErr.NewSubtype("delete_from_stage")

	ManageMySQLPrimaryKeys = innerError.NewSubtype("manage_mysql_primary_keys")

	DBInfo          = errorx.RegisterPrintableProperty("db_info")
	DBObjects       = errorx.RegisterPrintableProperty("db_objects")
	SystemErrorFlag = errorx.RegisterPrintableProperty("system_error")

	DestinationID   = errorx.RegisterPrintableProperty("destination_id")
	DestinationType = errorx.RegisterPrintableProperty("destination_type")
)

Functions

func Decorate

func Decorate(err error, msg string, args ...any) *errorx.Error

func Group

func Group(errs ...error) error

Group multiple errors where first one is a main error

func IsSystemError

func IsSystemError(err error) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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