Class ErrorDetails
java.lang.Object
io.r2dbc.postgresql.api.ErrorDetails
Error details. This class is a direct translation of the
ErrorResponse message.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ErrorDetailsfromCodeAndMessage(String code, String message) Create a newErrorDetailsstatic ErrorDetailsfromMessage(String message) Create a newErrorDetailsgetCode()Returns the value of theField.FieldType.CODEfield (SQLState).Returns the value of theField.FieldType.COLUMN_NAMEfield.Returns the value of theField.FieldType.CONSTRAINT_NAMEfield.Returns the value of theField.FieldType.DATA_TYPE_NAMEfield.Returns the value of theField.FieldType.DETAILfield.getFile()Returns the value of theField.FieldType.FILEfield.getHint()Returns the value of theField.FieldType.HINTfield.Returns the value of theField.FieldType.INTERNAL_POSITIONfield.Returns the value of theField.FieldType.INTERNAL_QUERYfield.getLine()Returns the value of theField.FieldType.LINEfield.Returns the value of theField.FieldType.MESSAGEfield.Returns the value of theField.FieldType.POSITIONfield.Returns the value of theField.FieldType.ROUTINEfield.Returns the value of theField.FieldType.SCHEMA_NAMEfield.Returns the value of theField.FieldType.SEVERITY_LOCALIZEDfield.Returns the value of theField.FieldType.SEVERITY_NON_LOCALIZEDfield.Returns the value of theField.FieldType.TABLE_NAMEfield.getWhere()Returns the value of theField.FieldType.WHEREfield.inthashCode()toString()
-
Constructor Details
-
ErrorDetails
- Parameters:
fields- the fields to be used to populate the exception- Throws:
IllegalArgumentException- iffieldsisnull
-
-
Method Details
-
fromMessage
Create a newErrorDetails- Parameters:
message- the error message- Returns:
- the
ErrorDetailsobject
-
fromCodeAndMessage
Create a newErrorDetails- Parameters:
code- the error codemessage- the error message- Returns:
- the
ErrorDetailsobject
-
equals
-
getCode
Returns the value of theField.FieldType.CODEfield (SQLState).- Returns:
- the value of the
Field.FieldType.CODEfield
-
getColumnName
Returns the value of theField.FieldType.COLUMN_NAMEfield.- Returns:
- the value of the
Field.FieldType.COLUMN_NAMEfield
-
getConstraintName
Returns the value of theField.FieldType.CONSTRAINT_NAMEfield.- Returns:
- the value of the
Field.FieldType.CONSTRAINT_NAMEfield
-
getDataTypeName
Returns the value of theField.FieldType.DATA_TYPE_NAMEfield.- Returns:
- the value of the
Field.FieldType.DATA_TYPE_NAMEfield
-
getDetail
Returns the value of theField.FieldType.DETAILfield.- Returns:
- the value of the
Field.FieldType.DETAILfield
-
getFile
Returns the value of theField.FieldType.FILEfield.- Returns:
- the value of the
Field.FieldType.FILEfield
-
getHint
Returns the value of theField.FieldType.HINTfield.- Returns:
- the value of the
Field.FieldType.HINTfield
-
getInternalPosition
Returns the value of theField.FieldType.INTERNAL_POSITIONfield.- Returns:
- the value of the
Field.FieldType.INTERNAL_POSITIONfield
-
getInternalQuery
Returns the value of theField.FieldType.INTERNAL_QUERYfield.- Returns:
- the value of the
Field.FieldType.INTERNAL_QUERYfield
-
getLine
Returns the value of theField.FieldType.LINEfield.- Returns:
- the value of the
Field.FieldType.LINEfield
-
getMessage
Returns the value of theField.FieldType.MESSAGEfield.- Returns:
- the value of the
Field.FieldType.MESSAGEfield
-
getPosition
Returns the value of theField.FieldType.POSITIONfield.- Returns:
- the value of the
Field.FieldType.POSITIONfield
-
getRoutine
Returns the value of theField.FieldType.ROUTINEfield.- Returns:
- the value of the
Field.FieldType.ROUTINEfield
-
getSchemaName
Returns the value of theField.FieldType.SCHEMA_NAMEfield.- Returns:
- the value of the
Field.FieldType.SCHEMA_NAMEfield
-
getSeverityLocalized
Returns the value of theField.FieldType.SEVERITY_LOCALIZEDfield.- Returns:
- the value of the
Field.FieldType.SEVERITY_LOCALIZEDfield
-
getSeverityNonLocalized
Returns the value of theField.FieldType.SEVERITY_NON_LOCALIZEDfield.- Returns:
- the value of the
Field.FieldType.SEVERITY_NON_LOCALIZEDfield
-
getTableName
Returns the value of theField.FieldType.TABLE_NAMEfield.- Returns:
- the value of the
Field.FieldType.TABLE_NAMEfield
-
getWhere
Returns the value of theField.FieldType.WHEREfield.- Returns:
- the value of the
Field.FieldType.WHEREfield
-
hashCode
-
toString
-