Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.enhydra.servlet
Class ServletIOException  view ServletIOException download ServletIOException.java

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.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  boolean trueIOException
          Flag that indicates that this came from an a I/O operation rather than a generated exception.
 
Fields inherited from class java.io.IOException
 
Fields inherited from class java.lang.Throwable
 
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
 

Field Detail

trueIOException

private boolean trueIOException
Flag that indicates that this came from an a I/O operation rather than a generated exception.

Constructor Detail

ServletIOException

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


ServletIOException

public ServletIOException(java.lang.String msg)
Construct a new exception with a specific 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.


isTrueIOException

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