|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
javax.imageio.IIOException
org.geotools.coverage.io.MetadataException
The base class for error related to grid coverage's metadata.
This exception is thrown by the helper class MetadataBuilder.
| Constructor Summary | |
MetadataException(java.lang.Exception cause,
MetadataBuilder.Key key,
java.lang.String alias)
Constructs an exception from the specified cause. |
|
MetadataException(java.lang.String message)
Constructs an exception with the specified message and no key. |
|
MetadataException(java.lang.String message,
MetadataBuilder.Key key,
java.lang.String alias)
Constructs an exception with the specified message. |
|
MetadataException(java.lang.String message,
java.lang.Throwable cause)
Constructs an exception with the specified message and exception as its cause. |
|
| Method Summary | |
java.lang.String |
getMetadataAlias()
Returns the alias used for the key getMetadataKey(). |
MetadataBuilder.Key |
getMetadataKey()
Returns the metadata key which has raised this exception. |
java.lang.String |
toString()
Returns a string representation of this exception. |
| 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 |
public MetadataException(java.lang.String message)
message - The message, or if none.
public MetadataException(java.lang.String message,
java.lang.Throwable cause)
message - The message, or if none.cause - The cause for this exception.
public MetadataException(java.lang.String message,
MetadataBuilder.Key key,
java.lang.String alias)
message - The message, or if none.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.
public MetadataException(java.lang.Exception cause,
MetadataBuilder.Key key,
java.lang.String alias)
cause - The cause for this exception.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.| Method Detail |
public MetadataBuilder.Key getMetadataKey()
public java.lang.String getMetadataAlias()
getMetadataKey(). This is usually the name
used in the external file to be parsed. The alias is format-dependent, while the key
(as returned by getMetadataKey()) if format neutral.
public java.lang.String toString()
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".
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||