Changeset 3078
- Timestamp:
- Jan 22, 2007, 2:51:17 PM (16 years ago)
- Location:
- trunk/src/core/net/sf/basedb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/PluginDefinition.java
r3074 r3078 39 39 import net.sf.basedb.util.JarClassLoader; 40 40 41 import java.io.IOException;42 41 import java.util.Collection; 43 42 import java.util.Collections; … … 981 980 return (Plugin)c.newInstance(); 982 981 } 983 catch ( IOException ioex)984 { 985 throw new BaseException(ioex);982 catch (BaseException bex) 983 { 984 throw bex; 986 985 } 987 986 catch (Exception ex) -
trunk/src/core/net/sf/basedb/util/JarClassLoader.java
r3052 r3078 37 37 import java.net.MalformedURLException; 38 38 39 import net.sf.basedb.core.InvalidDataException; 40 39 41 /** 40 42 A class loader implementation that loads classes from JAR files. … … 134 136 Create a new JAR file class loader. 135 137 @param jarPath The path to the JAR file 136 @throws IOException If the JAR file can't be loaded 138 @throws InvalidDataException If the JAR file can't be loaded 139 @throws IOException If there is another IO-related error 137 140 */ 138 141 private JarClassLoader(String jarPath) … … 141 144 super(Thread.currentThread().getContextClassLoader()); 142 145 mainJarFile = new File(jarPath); 143 if (!mainJarFile.exists()) throw new I OException("Couldn't find jar-file: \"" + jarPath + "\"");146 if (!mainJarFile.exists()) throw new InvalidDataException("JAR file not found: " + jarPath); 144 147 classPath = new HashMap<String, File>(); 145 148 loadJarFile(mainJarFile, true);
Note: See TracChangeset
for help on using the changeset viewer.