org.enhydra.servlet
Class ServletIOException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byorg.enhydra.servlet.ServletIOException
All Implemented Interfaces:
java.io.Serializable

public class ServletIOException
extends java.io.IOException

IOException derived class that is thrown when the servlet encounters an I/O error when talking to a client. This allows connection methods to determine how the error should be handled, even though it was generated by a call that occured in servlet code.

See Also:
Serialized Form

Constructor Summary
ServletIOException(java.io.IOException except)
          Construct a new exception from an existing IOException.
ServletIOException(java.lang.String msg)
          Construct a new exception with a specific message.
 
Method Summary
 boolean isTrueIOException()
          Did this exception come from an a I/O operation rather than a generated exception.
static java.io.IOException rethrow(java.io.IOException except)
          Static method that does the approriate conversion from an IOException to a ServletIOException If the exception is already an ServletIOException, it is simple rethrown.
 
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

ServletIOException

public ServletIOException(java.io.IOException except)
Construct a new exception from an existing IOException.

Parameters:
except - The exception to encapsulate.

ServletIOException

public ServletIOException(java.lang.String msg)
Construct a new exception with a specific message.

Parameters:
msg - The error message
Method Detail

rethrow

public static java.io.IOException rethrow(java.io.IOException except)
                                   throws java.io.IOException
Static method that does the approriate conversion from an IOException to a ServletIOException If the exception is already an ServletIOException, it is simple rethrown. If it is another type of IOException, it is converted to a ServletIOException.

Parameters:
except - The exception to rethrow or encapsulate.
Returns:
An exception ready to throw.
Throws:
java.io.IOException

isTrueIOException

public boolean isTrueIOException()
Did this exception come from an a I/O operation rather than a generated exception.

Returns:
True if its an actual I/O exception.