01: package liquibase.exception;
02:
03: import liquibase.database.Database;
04: import liquibase.database.sql.SqlStatement;
05:
06: public class StatementNotSupportedOnDatabaseException extends
07: JDBCException {
08: private String reason;
09:
10: public StatementNotSupportedOnDatabaseException(
11: SqlStatement statement, Database database) {
12: super (statement.getClass().getName() + " is not supported on "
13: + database.getProductName());
14: }
15:
16: public StatementNotSupportedOnDatabaseException(String reason,
17: SqlStatement statement, Database database) {
18: super (statement.getClass().getName() + " is not supported on "
19: + database.getProductName() + ": " + reason);
20: this .reason = reason;
21: }
22:
23: public String getReason() {
24: return reason;
25: }
26: }
|