Changeset 2192


Ignore:
Timestamp:
01/31/07 14:16:14 (13 years ago)
Author:
chris
Message:

Be more thorough catching problems with loading reader classes;
print exception dumps if debugging flag is set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/ImageReader.java

    r2182 r2192  
    7070      Class c = null; 
    7171      try { c = Class.forName(line); } 
    72       catch (ClassNotFoundException exc) { } 
     72      catch (ClassNotFoundException exc) { 
     73        if (FormatReader.debug) exc.printStackTrace(); 
     74      } 
     75      catch (NoClassDefFoundError err) { 
     76        if (FormatReader.debug) err.printStackTrace(); 
     77      } 
     78      catch (ExceptionInInitializerError err) { 
     79        if (FormatReader.debug) err.printStackTrace(); 
     80      } 
    7381      if (c == null || !FormatReader.class.isAssignableFrom(c)) { 
    7482        System.err.println("Error: \"" + line + 
Note: See TracChangeset for help on using the changeset viewer.