"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hsqldb/src/org/hsqldb/HsqlException.java" between
hsqldb-2.7.0.zip and hsqldb-2.7.1.zip

About: HSQLDB (HyperSQL DataBase) is a SQL relational database engine written in Java. It supports nearly full ANSI-92 SQL (BNF format) and full core SQL:2008.

HsqlException.java  (hsqldb-2.7.0):HsqlException.java  (hsqldb-2.7.1)
/* Copyright (c) 2001-2021, The HSQL Development Group /* Copyright (c) 2001-2022, The HSQL Development Group
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met: * modification, are permitted provided that the following conditions are met:
* *
* Redistributions of source code must retain the above copyright notice, this * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer. * list of conditions and the following disclaimer.
* *
* Redistributions in binary form must reproduce the above copyright notice, * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation * this list of conditions and the following disclaimer in the documentation
skipping to change at line 43 skipping to change at line 43
import org.hsqldb.error.Error; import org.hsqldb.error.Error;
import org.hsqldb.error.ErrorCode; import org.hsqldb.error.ErrorCode;
import org.hsqldb.result.Result; import org.hsqldb.result.Result;
/** /**
* Class encapsulating all exceptions that can be thrown within the engine. * Class encapsulating all exceptions that can be thrown within the engine.
* Instances are used to create instances of java.sql.SQLException and returned * Instances are used to create instances of java.sql.SQLException and returned
* to JDBC callers. * to JDBC callers.
* *
* @author Fred Toussi (fredt@users dot sourceforge.net) * @author Fred Toussi (fredt@users dot sourceforge.net)
* @version 1.9.0 * @version 2.7.1
* @since 1.7.2 * @since 1.7.2
*/ */
public class HsqlException extends RuntimeException { public class HsqlException extends RuntimeException {
// //
public static final HsqlException[] emptyArray = new HsqlException[]{}; public static final HsqlException[] emptyArray = new HsqlException[]{};
public static final HsqlException noDataCondition = public static final HsqlException noDataCondition =
Error.error(ErrorCode.N_02000); Error.error(ErrorCode.N_02000);
// //
private String message; private String message;
private String state; private String state;
private int code; private int code;
private int level; private int level;
private int statementGroup; private int statementGroup;
private int statementCode; private int statementCode;
private String token;
public Object info; public Object info;
/** /**
* @param message String * @param message String
* @param state XOPEN / SQL code for exception * @param state XOPEN / SQL code for exception
* @param code number code in HSQLDB * @param code number code in HSQLDB
*/ */
public HsqlException(Throwable t, String message, String state, int code) { public HsqlException(Throwable t, String message, String state, int code) {
super(t); super(t);
skipping to change at line 136 skipping to change at line 137
public int getStatementCode() { public int getStatementCode() {
return statementCode; return statementCode;
} }
public void setStatementType(int group, int code) { public void setStatementType(int group, int code) {
statementGroup = group; statementGroup = group;
statementCode = code; statementCode = code;
} }
public void setToken(String token) {
this.token = token;
}
public String getToken() {
return token;
}
public int hashCode() { public int hashCode() {
return code; return code;
} }
public boolean equals(Object other) { public boolean equals(Object other) {
if (other instanceof HsqlException) { if (other instanceof HsqlException) {
HsqlException o = (HsqlException) other; HsqlException o = (HsqlException) other;
return code == o.code && equals(state, o.state) return code == o.code && equals(state, o.state)
 End of changes. 4 change blocks. 
2 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)