case 'E': // ErrorResponse
String errorMsg = pgStream.ReceiveString();
if (logger.logDebug())
logger.debug(" <=BE ErrorResponse(" + errorMsg + ")");
throw new PSQLException(GT.tr("Backend start-up failed: {0}.", errorMsg), PSQLState.CONNECTION_UNABLE_TO_CONNECT);
case 'N': // NoticeResponse
String warnMsg = pgStream.ReceiveString();
if (logger.logDebug())
logger.debug(" <=BE NoticeResponse(" + warnMsg + ")");
protoConnection.addWarning(new SQLWarning(warnMsg));
break;
default:
throw new PSQLException(GT.tr("Protocol error. Session setup failed."), PSQLState.CONNECTION_UNABLE_TO_CONNECT);
}
}
}