EAF 7.6 API

com.lutris.appserver.server.httpPresentation
Class HttpPresentationIOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.lutris.appserver.server.httpPresentation.HttpPresentationIOException
All Implemented Interfaces:
java.io.Serializable

public class HttpPresentationIOException
extends java.io.IOException

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

See Also:
Serialized Form

Constructor Summary
HttpPresentationIOException(java.io.IOException except)
          Construct a new exception from an existing IOException.
HttpPresentationIOException(java.lang.String msg)
          Construct a new exception with a specific message.
 
Method Summary
static boolean isClientIOException(java.lang.Throwable except)
          Given a exception or error, determine if its generated by a HTTP client I/O exception.
 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 HttpPresentationIOException If the exception is already an HttpPresentationIOException, 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

HttpPresentationIOException

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

Parameters:
except - The exception to encapsulate.

HttpPresentationIOException

public HttpPresentationIOException(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 HttpPresentationIOException If the exception is already an HttpPresentationIOException, it is simple rethrown. If it is another type of IOException, it is converted to a HttpPresentationIOException.

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.

isClientIOException

public static boolean isClientIOException(java.lang.Throwable except)
Given a exception or error, determine if its generated by a HTTP client I/O exception. This handles ChyainedExceptions that might contain a client I/O exception.

Parameters:
except - Exception to check.
Returns:
true if this is cause by the client socket, false if not.

EAF 7.6 API