package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

NewContext creates an error context to handle the errors and warnings.
NewContextWithLevels creates an error context to handle the errors and warnings.
ResolveErrLevel resolves the error level according to the `ignore` and `warn` flags if ignore is true, it will return `LevelIgnore` to ignore the error, otherwise, it will return `LevelWarn` or `LevelError` according to the `warn` flag Only one of `ignore` and `warn` can be true.

# Constants

ErrGroupAutoIncReadFailed is the group of auto increment read failed errors.
ErrGroupBadNull is the group of bad null errors.
ErrGroupDividedByZero is the group of divided by zero errors.
ErrGroupDupKey is the group of duplicate key errors.
ErrGroupNoDefault is the group of no default value errors.
ErrGroupNoMatchedPartition is the group of no partition is matched errors.
ErrGroupTruncate is the group of truncated errors.
LevelError means the error will be returned.
LevelIgnore means the error will be ignored.
LevelWarn means it will be regarded as a warning.

# Variables

StrictNoWarningContext returns all errors directly, and ignore all errors.

# Structs

Context defines how to handle an error.

# Type aliases

ErrGroup groups the error according to the behavior of handling errors.
Level defines the behavior for each error.
LevelMap indicates the map from `ErrGroup` to `Level`.