org.geotools.coverage.io
Class MissingMetadataException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by javax.imageio.IIOException
                  extended by org.geotools.coverage.io.MetadataException
                      extended by org.geotools.coverage.io.MissingMetadataException
All Implemented Interfaces:
java.io.Serializable

public class MissingMetadataException
extends MetadataException

Thrown when a metadata is required but can't be found. This error typically occurs when a raster is being read but the file doesn't contains enough information for constructing the raster's coordinate system.

Since:
2.2
Version:
$Id: MissingMetadataException.java 30965 2008-07-09 10:04:21Z cedricbr $
Author:
Martin Desruisseaux (IRD)
See Also:
Serialized Form

Constructor Summary
MissingMetadataException(java.lang.String message, TextMetadataParser.Key key, java.lang.String alias)
          Constructs an exception with the specified message.
 
Method Summary
 
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

MissingMetadataException

public MissingMetadataException(java.lang.String message,
                                TextMetadataParser.Key key,
                                java.lang.String alias)
Constructs an exception with the specified message. This exception is usually raised because no value was defined for the key key.

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


Copyright © 1996-2010 Geotools. All Rights Reserved.