|
From: <sa...@us...> - 2003-10-17 12:12:26
|
Update of /cvsroot/jrobin/src/jrobin/core
In directory sc8-pr-cvs1:/tmp/cvs-serv17241/jrobin/core
Modified Files:
RrdDb.java
Log Message:
Added more appropriate exception when RrdDb tries to open non-existent RRD file. Added logical functions (AND, OR, XOR) to RpnCalculator.
Index: RrdDb.java
===================================================================
RCS file: /cvsroot/jrobin/src/jrobin/core/RrdDb.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** RrdDb.java 6 Oct 2003 10:45:04 -0000 1.7
--- RrdDb.java 17 Oct 2003 12:12:20 -0000 1.8
***************
*** 135,138 ****
--- 135,143 ----
public RrdDb(String path) throws IOException, RrdException {
+ // opens existing RRD file - throw exception if the file does not exist...
+ File rrdFile = new File(path);
+ if(!rrdFile.exists()) {
+ throw new IOException("Could not open file " + path + " [non existent]");
+ }
try {
initializeSetup(path);
|