Changeset 2773


Ignore:
Timestamp:
05/09/07 10:25:14 (13 years ago)
Author:
curtis
Message:

Only wrap exception in FormatException if it is not already a FormatException.

File:
1 edited

Legend:

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

    r2726 r2773  
    12941294        } 
    12951295        catch (Exception e) { 
    1296           if (strip == 0) throw new FormatException(e); 
     1296          if (strip == 0) { 
     1297            if (e instanceof FormatException) throw (FormatException) e; 
     1298            else throw new FormatException(e); 
     1299          } 
    12971300          byte[] bytes = new byte[samples[0].length]; 
    12981301          undifference(bytes, bitsPerSample, imageWidth, planarConfig, 
Note: See TracChangeset for help on using the changeset viewer.