package io.vertx.pgclient.impl.codec;
import io.vertx.sqlclient.impl.Notice;
import io.vertx.core.logging.Logger;
class NoticeResponse extends Response implements Notice {
@Override
public void log(Logger logger) {
logger.warn("Backend notice: " +
"severity='" + getSeverity() + "'" +
", code='" + getCode() + "'" +
", message='" + getMessage() + "'" +
", detail='" + getDetail() + "'" +
", hint='" + getHint() + "'" +
", position='" + getPosition() + "'" +
", internalPosition='" + getInternalPosition() + "'" +
", internalQuery='" + getInternalQuery() + "'" +
", where='" + getWhere() + "'" +
", file='" + getFile() + "'" +
", line='" + getLine() + "'" +
", routine='" + getRoutine() + "'" +
", schema='" + getSchema() + "'" +
", table='" + getTable() + "'" +
", column='" + getColumn() + "'" +
", dataType='" + getDataType() + "'" +
", constraint='" + getConstraint() + "'");
}
@Override
public String toString() {
return "NoticeResponse{" +
"severity='" + getSeverity() + '\'' +
", code='" + getCode() + '\'' +
", message='" + getMessage() + '\'' +
", detail='" + getDetail() + '\'' +
", hint='" + getHint() + '\'' +
", position='" + getPosition() + '\'' +
", internalPosition='" + getInternalPosition() + '\'' +
", internalQuery='" + getInternalQuery() + '\'' +
", where='" + getWhere() + '\'' +
", file='" + getFile() + '\'' +
", line='" + getLine() + '\'' +
", routine='" + getRoutine() + '\'' +
", schema='" + getSchema() + '\'' +
", table='" + getTable() + '\'' +
", column='" + getColumn() + '\'' +
", dataType='" + getDataType() + '\'' +
", constraint='" + getConstraint() + '\'' +
'}';
}
}