#[repr(u8)]pub enum PgServerErrorField {
Show 18 variants
Severity = 83,
SeverityNonLocalized = 86,
Code = 67,
Message = 77,
Detail = 68,
Hint = 72,
Position = 80,
InternalPosition = 112,
InternalQuery = 113,
Where = 87,
SchemaName = 115,
TableName = 116,
ColumnName = 99,
DataTypeName = 100,
ConstraintName = 110,
File = 70,
Line = 76,
Routine = 82,
}Expand description
Enum representing the field types in ErrorResponse and NoticeResponse messages.
See https://www.postgresql.org/docs/current/protocol-error-fields.html
Variants§
Severity = 83
Severity: ERROR, FATAL, PANIC, WARNING, NOTICE, DEBUG, INFO, or LOG
SeverityNonLocalized = 86
Severity (non-localized): ERROR, FATAL, PANIC, WARNING, NOTICE, DEBUG, INFO, or LOG
Code = 67
SQLSTATE code for the error
Message = 77
Primary human-readable error message
Detail = 68
Optional secondary error message with more detail
Hint = 72
Optional suggestion on how to resolve the problem
Position = 80
Error cursor position as an index into the original query string
InternalPosition = 112
Internal position for internally generated commands
InternalQuery = 113
Text of a failed internally-generated command
Where = 87
Context in which the error occurred (e.g., call stack traceback)
SchemaName = 115
Schema name associated with the error
TableName = 116
Table name associated with the error
ColumnName = 99
Column name associated with the error
DataTypeName = 100
Data type name associated with the error
ConstraintName = 110
Constraint name associated with the error
File = 70
Source-code file name where the error was reported
Line = 76
Source-code line number where the error was reported
Routine = 82
Source-code routine name reporting the error
Trait Implementations§
Source§impl Clone for PgServerErrorField
impl Clone for PgServerErrorField
Source§fn clone(&self) -> PgServerErrorField
fn clone(&self) -> PgServerErrorField
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more