| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException com.lutris.appserver.server.httpPresentation.HttpPresentationIOException
HttpPresentationIOException | public class HttpPresentationIOException extends IOException (Code) | | 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.
|
Method Summary | |
public static boolean | isClientIOException(Throwable except) Given a exception or error, determine if its generated by a HTTP
client I/O exception. | public boolean | isTrueIOException() Did this exception come from an a I/O operation
rather than a generated exception.
True if its an actual I/O exception. | public static IOException | rethrow(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. |
HttpPresentationIOException | public HttpPresentationIOException(IOException except)(Code) | | Construct a new exception from an existing IOException.
Parameters: except - The exception to encapsulate. |
HttpPresentationIOException | public HttpPresentationIOException(String msg)(Code) | | Construct a new exception with a specific message.
Parameters: msg - The error message |
isClientIOException | public static boolean isClientIOException(Throwable except)(Code) | | 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. true if this is cause by the client socket,false if not. |
isTrueIOException | public boolean isTrueIOException()(Code) | | Did this exception come from an a I/O operation
rather than a generated exception.
True if its an actual I/O exception. |
rethrow | public static IOException rethrow(IOException except) throws IOException(Code) | | 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. An exception ready to throw. |
|
|
|