org.geotools.io
Class ContentFormatException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byorg.geotools.io.ContentFormatException
All Implemented Interfaces:
java.io.Serializable

public class ContentFormatException
extends java.io.IOException

Throws when a stream can't be parsed because some content use an invalid format. This exception typically has a ParseException has its cause. It is similar in spirit to java.util.InvalidPropertiesFormatException.

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

Constructor Summary
ContentFormatException(java.lang.String message)
          Constructs a new exception with the specified detail message.
ContentFormatException(java.lang.String message, java.lang.Throwable cause)
          Constructs a new exception with the specified detail message and cause.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentFormatException

public ContentFormatException(java.lang.String message)
Constructs a new exception with the specified detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.


ContentFormatException

public ContentFormatException(java.lang.String message,
                              java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause. The cause is saved for later retrieval by the Throwable.getCause() method.



Copyright © GeoTools. All Rights Reserved.