Changeset 4063


Ignore:
Timestamp:
05/23/08 14:35:51 (12 years ago)
Author:
curtis
Message:

Better error message when plane number is out of bounds.

File:
1 edited

Legend:

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

    r4048 r4063  
    479479    throws FormatException 
    480480  { 
    481     if (no < 0 || no >= r.getImageCount()) { 
    482       throw new FormatException("Invalid image number: " + no); 
     481    int imageCount = r.getImageCount(); 
     482    if (no < 0 || no >= imageCount) { 
     483      throw new FormatException("Invalid image number: " + no + 
     484        " (series=" + r.getSeries() + ", imageCount=" + imageCount + ")"); 
    483485    } 
    484486  } 
Note: See TracChangeset for help on using the changeset viewer.