1 | |
package liquibase.exception; |
2 | |
|
3 | |
import liquibase.database.Database; |
4 | |
import liquibase.statement.SqlStatement; |
5 | |
|
6 | |
public class StatementNotSupportedOnDatabaseException extends DatabaseException { |
7 | |
private String reason; |
8 | |
|
9 | |
public StatementNotSupportedOnDatabaseException(SqlStatement statement, Database database) { |
10 | 0 | super(statement.getClass().getName() + " is not supported on " + database.getTypeName()); |
11 | 0 | } |
12 | |
|
13 | |
public StatementNotSupportedOnDatabaseException(String reason, SqlStatement statement, Database database) { |
14 | 0 | super(statement.getClass().getName() + " is not supported on " + database.getTypeName() + ": " + reason); |
15 | 0 | this.reason = reason; |
16 | 0 | } |
17 | |
|
18 | |
public String getReason() { |
19 | 0 | return reason; |
20 | |
} |
21 | |
} |