Changeset 155
- Timestamp:
- 11/18/07 17:08:21 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lex/trunk/src/com/qwirx/lex/emdros/EmdrosDatabase.java
r142 r155 84 84 catch (TableException e) 85 85 { 86 throw new DatabaseException( e, query);86 throw new DatabaseException("Failed to execute query", e, query); 87 87 } 88 88 catch (BadMonadsException e) 89 89 { 90 throw new DatabaseException( e, query);90 throw new DatabaseException("Failed to execute query", e, query); 91 91 } 92 92 catch (EMdFDBDBError e) 93 93 { 94 throw new DatabaseException( e, query);94 throw new DatabaseException("Failed to execute query", e, query); 95 95 } 96 96 catch (EmdrosException e) 97 97 { 98 throw new DatabaseException( e, query);98 throw new DatabaseException("Failed to execute query", e, query); 99 99 } 100 100 … … 151 151 catch (TableException e) 152 152 { 153 throw new DatabaseException(e, "SELECT MIN_M"); 153 throw new DatabaseException("Failed to get MIN_M", e, 154 "SELECT MIN_M"); 154 155 } 155 156 } … … 168 169 catch (TableException e) 169 170 { 170 throw new DatabaseException(e, "SELECT MAX_M"); 171 throw new DatabaseException("Failed to get MAX_M", e, 172 "SELECT MAX_M"); 171 173 } 172 174 } … … 198 200 catch (TableException e) 199 201 { 200 throw new DatabaseException( e,201 "SELECT ENUMERATION CONSTANTS FROM "+type);202 throw new DatabaseException("Failed to get enumeration constants", 203 e, "SELECT ENUMERATION CONSTANTS FROM "+type); 202 204 } 203 205 … … 232 234 catch (TableException e) 233 235 { 234 throw new DatabaseException(e, "MONAD SET CALCULATION "+query); 236 throw new DatabaseException("Failed to calculate monad set ", 237 e, "MONAD SET CALCULATION "+query); 235 238 } 236 239 … … 297 300 catch (TableException e) 298 301 { 299 throw new DatabaseException(e, "SELECT FEATURES FROM ["+objectType+"]"); 302 throw new DatabaseException("Failed to get features", 303 e, "SELECT FEATURES FROM ["+objectType+"]"); 300 304 } 301 305 … … 327 331 catch (TableException e) 328 332 { 329 throw new DatabaseException(e, "SELECT OBJECT TYPES"); 333 throw new DatabaseException("Failed to get the list of " + 334 "object types", e, "SELECT OBJECT TYPES"); 330 335 } 331 336 … … 458 463 catch (TableException e) 459 464 { 460 throw new DatabaseException(e, query); 465 throw new DatabaseException("Failed to get monads from object", 466 e, query); 461 467 } 462 468 … … 483 489 catch (SQLException e) 484 490 { 485 throw new DatabaseException(e, query); 491 throw new DatabaseException("Failed to find database access " + 492 "permissions", e, query); 486 493 } 487 494 … … 504 511 catch (SQLException e) 505 512 { 506 throw new DatabaseException( e, "constructing monad set "+507 first +"-"+last);513 throw new DatabaseException("Failed to construct monad set " + 514 first + "-" + last, e); 508 515 } 509 516 catch (BadMonadsException e) 510 517 { 511 throw new DatabaseException( e, "constructing monad set "+512 first +"-"+last);518 throw new DatabaseException("Failed to construct monad set " + 519 first + "-" + last, e); 513 520 } 514 521 515 522 return monads.isEmpty(); 516 523 } 524 525 public void delete() 526 { 527 env.delete(); 528 } 517 529 }
