package
0.0.0-20231025143031-ac1779c1cb7f
Repository: https://github.com/imneov/postgrecrd.git
Documentation: pkg.go.dev

# Functions

DefaultSeverity returns the default severity (ERROR) if no valid severity has been defined.
Flatten returns a flattened error which could be used to construct Postgres wire error messages.
GetCode returns the Postgres error code inside the given error.
GetConstraintName returns the Postgres error constraint name inside the given error.
GetDetail returns the Postgres detail inside the given error.
GetHint returns the Postgres hint inside the given error.
GetSeverity returns the Postgres error severity inside the given error.
GetSource returns the Postgres source inside the given error.
WithCode decorates the error with a Postgres error code.
WithConstraintName decorates the error with a Postgres error constraint.
WithDetail decorates the error with Postgres error details.
WithHint decorates the error with a Postgres error hint.
WithSeverity decorates the error with a Postgres error severity.
WithSource decorates the error with a Postgres error source.

# Constants

Represents the severity of a thrown error.
Represents the severity of a thrown error.
Represents the severity of a thrown error.
Represents the severity of a thrown error.
Represents the severity of a thrown error.
Represents the severity of a thrown error.
Represents the severity of a thrown error.
Represents the severity of a thrown error.

# Structs

Error contains all Postgres wire protocol error fields.
Source represents whenever possible the source of a given error.

# Type aliases

Severity represents the severity of a thrown error.