com.amazon.redshift.util.RedshiftWarning Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redshift-jdbc42 Show documentation
Show all versions of redshift-jdbc42 Show documentation
Java JDBC 4.2 (JRE 8+) driver for Redshift database
The newest version!
/*
* Copyright (c) 2004, PostgreSQL Global Development Group
* See the LICENSE file in the project root for more information.
*/
package com.amazon.redshift.util;
import java.sql.SQLWarning;
public class RedshiftWarning extends SQLWarning {
private ServerErrorMessage serverError;
public RedshiftWarning(ServerErrorMessage err) {
super(err.toString(), err.getSQLState());
this.serverError = err;
}
public String getMessage() {
return serverError.getMessage();
}
public ServerErrorMessage getServerErrorMessage() {
return serverError;
}
}