public static enum Field.FieldType extends Enum<Field.FieldType>
| Enum Constant and Description |
|---|
CODE
Code: the SQLSTATE code for the error.
|
COLUMN_NAME
Column name: if the error was associated with a specific table column, the name of the column.
|
CONSTRAINT_NAME
Constraint name: if the error was associated with a specific constraint, the name of the constraint.
|
DATA_TYPE_NAME
Data type name: if the error was associated with a specific data type, the name of the data type.
|
DETAIL
Detail: an optional secondary error message carrying more detail about the problem.
|
FILE
File: the file name of the source-code location where the error was reported.
|
HINT
Hint: an optional suggestion what to do about the problem.
|
INTERNAL_POSITION
Internal position: this is defined the same as the P field, but it is used when the cursor position refers to an internally generated command rather than the one submitted by the client.
|
INTERNAL_QUERY
Internal query: the text of a failed internally-generated command.
|
LINE
Line: the line number of the source-code location where the error was reported.
|
MESSAGE
Message: the primary human-readable error message.
|
POSITION
Position: the field value is a decimal ASCII integer, indicating an error cursor position as an index into the original query string.
|
ROUTINE
Routine: the name of the source-code routine reporting the error.
|
SCHEMA_NAME
Schema name: if the error was associated with a specific database object, the name of the schema containing that object, if any.
|
SEVERITY_LOCALIZED
Severity: the field contents are
ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in
a notice message), or a localized translation of one of these. |
SEVERITY_NON_LOCALIZED
Severity: the field contents are
ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in
a notice message). |
TABLE_NAME
Table name: if the error was associated with a specific table, the name of the table.
|
UNKNOWN
An unknown field type.
|
WHERE
Where: an indication of the context in which the error occurred.
|
| Modifier and Type | Method and Description |
|---|---|
static Field.FieldType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Field.FieldType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field.FieldType CODE
public static final Field.FieldType COLUMN_NAME
public static final Field.FieldType CONSTRAINT_NAME
public static final Field.FieldType DATA_TYPE_NAME
public static final Field.FieldType DETAIL
public static final Field.FieldType FILE
public static final Field.FieldType HINT
public static final Field.FieldType INTERNAL_POSITION
public static final Field.FieldType INTERNAL_QUERY
public static final Field.FieldType LINE
public static final Field.FieldType MESSAGE
public static final Field.FieldType POSITION
public static final Field.FieldType ROUTINE
public static final Field.FieldType SCHEMA_NAME
public static final Field.FieldType SEVERITY_LOCALIZED
ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in
a notice message), or a localized translation of one of these. Always present.public static final Field.FieldType SEVERITY_NON_LOCALIZED
ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in
a notice message). This is identical to the S field except that the contents are never localized. This is present only in messages generated by PostgreSQL versions 9.6 and later.public static final Field.FieldType TABLE_NAME
public static final Field.FieldType UNKNOWN
public static final Field.FieldType WHERE
public static Field.FieldType[] values()
for (Field.FieldType c : Field.FieldType.values()) System.out.println(c);
public static Field.FieldType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024. All rights reserved.