org.jasen.io
Class NonBlockingIOException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byorg.jasen.io.NonBlockingIOException
All Implemented Interfaces:
Serializable

public class NonBlockingIOException
extends IOException

Extended IOException to indicate timeout errors.

Author:
Jason Polites
See Also:
Serialized Form

Field Summary
static int INVALID_BUFFER
           
static int TIMEOUT
           
 
Constructor Summary
NonBlockingIOException()
           
NonBlockingIOException(int code)
           
NonBlockingIOException(String s)
           
NonBlockingIOException(String s, int code)
           
 
Method Summary
 int getCode()
          Gets the code that caused the exception
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TIMEOUT

public static final int TIMEOUT
See Also:
Constant Field Values

INVALID_BUFFER

public static final int INVALID_BUFFER
See Also:
Constant Field Values
Constructor Detail

NonBlockingIOException

public NonBlockingIOException()

NonBlockingIOException

public NonBlockingIOException(String s)
Parameters:
s -

NonBlockingIOException

public NonBlockingIOException(int code)

NonBlockingIOException

public NonBlockingIOException(String s,
                              int code)
Parameters:
s -
Method Detail

getCode

public int getCode()
Gets the code that caused the exception

Returns:
The exception code