NoticeResponse packet
A NoticeResponse packet is sent by the server to notify the client of one or more warnings. The type of the warnings is defined in the Postgres documentation.
Attributes
Attributes
String packetType: "NoticeResponse"
List<NoticeField> noticeFields : gets a list of NoticeField objects (see below).
Methods
Methods
String getNoticeString() : get all the notice fields as a comma-separated string. Useful for logging and debugging.
NoticeField addNoticeField(byte fieldType, String fieldValue) : add a new field to the packet.
void removeNoticeField(byte fieldType): remove the specified notice field, if present.
The NoticeField object
The NoticeField object
Attributes
Attributes
byte fieldType: the type of notice field
String fieldValue: the value of the field
Methods
Methods
String getTypeName(): gets the name of the type