org.geotools.coverage.io
Class AmbiguousMetadataException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjavax.imageio.IIOException
                  extended byorg.geotools.coverage.io.MetadataException
                      extended byorg.geotools.coverage.io.AmbiguousMetadataException
All Implemented Interfaces:
java.io.Serializable

public class AmbiguousMetadataException
extends MetadataException

Thrown when one or more metadata have ambiguous values. This exception is typically thrown when a metadata is defined twice with different values. It may also be thrown if a metadata can be computed from other metadata, but their values are inconsistent.

Since:
2.2
Version:
$Id: AmbiguousMetadataException.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux
See Also:
Serialized Form

Constructor Summary
AmbiguousMetadataException(java.lang.String message, MetadataBuilder.Key key, java.lang.String alias)
          Constructs an exception with the specified message.
 
Methods inherited from class org.geotools.coverage.io.MetadataException
getMetadataAlias, getMetadataKey, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmbiguousMetadataException

public AmbiguousMetadataException(java.lang.String message,
                                  MetadataBuilder.Key key,
                                  java.lang.String alias)
Constructs an exception with the specified message. This exception is usually raised because different values was found for the key .

Parameters:
message - The message. If , a message will be constructed from the alias.
key - The metadata key which was the cause for this exception, or if none. This is a format neutral key, for example MetadataBuilder.DATUM.
alias - The alias used for for the key , or if none. This is usually the name used in the external file parsed.


Copyright © GeoTools. All Rights Reserved.