au.com.prunge.jgenfile
Class OpenChannelException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.io.IOException
                    |
                    +--au.com.prunge.jgenfile.JGenFileException
                          |
                          +--au.com.prunge.jgenfile.OpenChannelException
All Implemented Interfaces:
Serializable

public class OpenChannelException
extends JGenFileException

An exception that occurs when an attempt is made to close a file accessor but the channel acquried with that accessor is still open.

Version:
1.0
Author:
Peter Runge
See Also:
Serialized Form

Constructor Summary
OpenChannelException(Channel channel)
          Constructs an OpenChannelException.
OpenChannelException(Channel channel, String s)
          Constructs an OpenChannelException.
 
Method Summary
 Channel getUnclosedChannel()
          Returns the channel that was not closed.
 
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

OpenChannelException

public OpenChannelException(Channel channel)
Constructs an OpenChannelException.

Parameters:
channel - the channel that is still open.

OpenChannelException

public OpenChannelException(Channel channel,
                            String s)
Constructs an OpenChannelException.

Parameters:
channel - the channel that is still open.
s - the detail message.
Method Detail

getUnclosedChannel

public Channel getUnclosedChannel()
Returns the channel that was not closed.

Returns:
the channel that was not closed.