Changeset 1357


Ignore:
Timestamp:
08/25/06 13:10:52 (14 years ago)
Author:
curtis
Message:

Change UnsupportedMetadataStoreException to somewhat more general
(and shorter) MetadataStoreException.

Location:
trunk/loci/formats
Files:
4 edited
1 moved

Legend:

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

    r1264 r1357  
    4343   * Creates a new instance. 
    4444   * @param delegates of type {@link MetadataStore}. 
    45    * @throws UnsupportedMetadataStoreException if the constructor is unable to 
     45   * @throws MetadataStoreException if the constructor is unable to 
    4646   * import pre-requisites of its delegates. 
    4747   */ 
    48   public AggregateMetadataStore(List delegates) 
    49     throws UnsupportedMetadataStoreException { 
     48  public AggregateMetadataStore(List delegates) throws MetadataStoreException { 
    5049    this.delegates = delegates; 
    5150  } 
  • trunk/loci/formats/MetadataStore.java

    r1264 r1357  
    3535 * It is expected that the constructors of all implementations of 
    3636 * <code>MetadataStore</code> interface throw a 
    37  * {@link UnsupportedMetadataStoreException} if they are unable to initialize 
     37 * {@link MetadataStoreException} if they are unable to initialize 
    3838 * some of their dependencies. 
    3939 * 
  • trunk/loci/formats/MetadataStoreException.java

    r1264 r1357  
    11// 
    2 // UnsupportedMetadataStoreException.java 
     2// MetadataStoreException.java 
    33// 
    44 
     
    2626 
    2727/** 
    28  * Thrown when metadata store initialization is attempted and failed due to 
    29  * potentially missing prerequisites. 
     28 * Thrown when a problem occurs with metadata stores (e.g., if initialization 
     29 * is attempted and fails due to potentially missing prerequisites). 
    3030 * 
    3131 * @author Chris Allan callan at blackcat.ca 
    3232 */ 
    33 public class UnsupportedMetadataStoreException extends FormatException { 
     33public class MetadataStoreException extends FormatException { 
    3434 
    35   public UnsupportedMetadataStoreException() { super(); } 
    36   public UnsupportedMetadataStoreException(String s) { super(s); } 
    37   public UnsupportedMetadataStoreException(String s, Throwable cause) { 
     35  public MetadataStoreException() { super(); } 
     36  public MetadataStoreException(String s) { super(s); } 
     37  public MetadataStoreException(String s, Throwable cause) { 
    3838    super(s, cause); 
    3939  } 
    40   public UnsupportedMetadataStoreException(Throwable cause) { super(cause); } 
     40  public MetadataStoreException(Throwable cause) { super(cause); } 
    4141 
    4242} 
  • trunk/loci/formats/OMEXMLMetadataStore.java

    r1346 r1357  
    6565 
    6666  /** Creates a new instance. */ 
    67   public OMEXMLMetadataStore() throws UnsupportedMetadataStoreException { } 
     67  public OMEXMLMetadataStore() throws MetadataStoreException { } 
    6868 
    6969  // -- OMEXMLMetadataStore methods -- 
  • trunk/loci/formats/in/OMEXMLReader.java

    r1264 r1357  
    322322      internalStore = new OMEXMLMetadataStore(); 
    323323    } 
    324     catch (UnsupportedMetadataStoreException e) { 
     324    catch (MetadataStoreException e) { 
    325325      throw new FormatException("To use this feature, please install the " + 
    326326          "org.openmicroscopy.xml package, available from " + 
Note: See TracChangeset for help on using the changeset viewer.