simple.http.serve
Class ContentException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by simple.http.serve.ContentException
All Implemented Interfaces:
java.io.Serializable

public class ContentException
extends java.io.IOException

The ContentException is thrown when the content factory cannot produce a suitable Content for an issued request URI. The ContentFactory throws this from the getContent method.

Author:
Niall Gallagher
See Also:
Serialized Form

Constructor Summary
ContentException()
          This empty constructor is used if there is no explanation of the loading exception required.
ContentException(java.lang.String desc)
          This constructor is used if there is a description of the event that caused the exception required.
 
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

ContentException

public ContentException()
This empty constructor is used if there is no explanation of the loading exception required.


ContentException

public ContentException(java.lang.String desc)
This constructor is used if there is a description of the event that caused the exception required.

Parameters:
desc - this is a description of the exception