| javax.imageio.IIOException org.geotools.coverage.io.MetadataException
All known Subclasses: org.geotools.coverage.io.MissingMetadataException, org.geotools.coverage.io.AmbiguousMetadataException,
MetadataException | public class MetadataException extends IIOException (Code) | | The base class for error related to grid coverage's metadata.
This exception is thrown by the helper class
MetadataBuilder .
version: $Id: MetadataException.java 25699 2007-05-31 15:55:07Z desruisseaux $ author: Martin Desruisseaux since: 2.2 |
MetadataException | public MetadataException(String message)(Code) | | Constructs an exception with the specified message and no key.
Parameters: message - The message, or null if none. |
MetadataException | public MetadataException(String message, Throwable cause)(Code) | | Constructs an exception with the specified message and exception as its cause.
Parameters: message - The message, or null if none. Parameters: cause - The cause for this exception. |
MetadataException | public MetadataException(String message, MetadataBuilder.Key key, String alias)(Code) | | Constructs an exception with the specified message. This exception is usually raised because
no value was defined for the key
key , or the value was ambiguous.
Parameters: message - The message, or null if none. Parameters: key - The metadata key which was the cause for this exception, or null ifnone. This is a format neutral key, for example MetadataBuilder.DATUM. Parameters: alias - The alias used for for the key key , or null if none. This isusually the name used in the external file parsed. |
MetadataException | public MetadataException(Exception cause, MetadataBuilder.Key key, String alias)(Code) | | Constructs an exception from the specified cause.
Parameters: cause - The cause for this exception. Parameters: key - The metadata key which was the cause for this exception, or null ifnone. This is a format neutral key, for example MetadataBuilder.DATUM. Parameters: alias - The alias used for for the key key , or null if none. This isusually the name used in the external file parsed. |
getMetadataKey | public MetadataBuilder.Key getMetadataKey()(Code) | | Returns the metadata key which has raised this exception. This exception has usually
been raised because no value was defined for this key, or the value was ambiguous.
The metadata key, or null if none. |
toString | public String toString()(Code) | | Returns a string representation of this exception. This implementation is similar to
Throwable.toString , except that the string will includes key and alias names
if they are defined. The localized message, if any, may be written on the next line.
Example:
org.geotools.coverage.io.MissingMetadataException(key="YMaximum", alias="ULY"):
Aucune valeur n'est définie pour la propriété "ULY".
|
|
|