org.geotools.io
Class ContentFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.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 uses an invalid format. This exception typically has a ParseException has its cause. It is similar in spirit to InvalidPropertiesFormatException.

Since:
2.2
Version:
$Id: ContentFormatException.java 30640 2008-06-12 17:34:32Z acuster $
Author:
Martin Desruisseaux (IRD)
See Also:
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.
 
Method Summary
 
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 © 1996-2010 Geotools. All Rights Reserved.