for(;;) {
byte token = input.readByte();
if (token == 0) {
break;
}
ErrorField field = ErrorField.toErrorField(token);
String value = input.readString(connectionState.getBackendCharset());
if (field == null) {
logger.warn("Unrecognized error field of type '{}' with the value '{}'", (char)token, value);
} else {
fields.put(field, value);