Changeset 212
- Timestamp:
- 12/28/07 19:50:41 (1 year ago)
- Files:
-
- lex/trunk/src/com/qwirx/db/DatabaseException.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lex/trunk/src/com/qwirx/db/DatabaseException.java
r152 r212 6 6 */ 7 7 package com.qwirx.db; 8 9 import org.apache.log4j.Logger; 8 10 9 11 /** … … 17 19 private final String message, query; 18 20 private final Exception original; 21 private static final Logger LOG = Logger.getLogger(DatabaseException.class); 19 22 20 23 public DatabaseException(String message, Exception original, String query) … … 23 26 this.query = query; 24 27 this.original = original; 28 LOG.error(message, original); 29 if (original != null) 30 { 31 setStackTrace(original.getStackTrace()); 32 } 25 33 } 26 34
