Revision: 15007
http://gate.svn.sourceforge.net/gate/?rev=15007&view=rev
Author: markagreenwood
Date: 2012-01-11 09:39:07 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
make PersistenceException pass the cause along properly
Modified Paths:
--------------
gate/trunk/src/gate/persist/PersistenceException.java
Modified: gate/trunk/src/gate/persist/PersistenceException.java
===================================================================
--- gate/trunk/src/gate/persist/PersistenceException.java 2012-01-11
07:03:42 UTC (rev 15006)
+++ gate/trunk/src/gate/persist/PersistenceException.java 2012-01-11
09:39:07 UTC (rev 15007)
@@ -32,14 +32,12 @@
/** Construction from exception */
public PersistenceException(Exception e) {
- super(e.toString());
- this.exception = e;
+ super(e);
}
/** Construction from both string and exception */
public PersistenceException(String s, Exception e) {
- super(s);
- this.exception = e;
+ super(s,e);
}
/**
@@ -56,7 +54,7 @@
s.flush();
super.printStackTrace(s);
s.print(" Caused by:\n");
- if(exception != null) exception.printStackTrace(s);
+ if(getCause() != null) getCause().printStackTrace(s);
}
/**
@@ -66,8 +64,6 @@
s.flush();
super.printStackTrace(s);
s.print(" Caused by:\n");
- if(exception != null) exception.printStackTrace(s);
+ if(getCause() != null) getCause().printStackTrace(s);
}
-
- Exception exception = null;
} // PersistenceException
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs