com.jrockit.memleak
Class ConnectionClosedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.jrockit.memleak.MemLeakException
              extended by com.jrockit.memleak.spi.SpiException
                  extended by com.jrockit.memleak.ConnectionClosedException
All Implemented Interfaces:
java.io.Serializable

public class ConnectionClosedException
extends SpiException

Specialized kind of IOException thrown when a IMemLeak operation is attempted but the connection already has been closed, unintentionally due to an IOException, or intentionally such as by IMemLeak.destroy(). These cases may be distinguished by the isIntentionallyClosed() method.

Author:
Markus Persson
See Also:
Serialized Form

Constructor Summary
ConnectionClosedException()
          Create a new ConnectionClosedException, intentionally closed.
ConnectionClosedException(java.lang.Exception cause)
          Create a new ConnectionClosedException with the given cause, intentionally closed if the cause is.
 
Method Summary
 boolean isIntentionallyClosed()
           
 
Methods inherited from class com.jrockit.memleak.spi.SpiException
unhandled
 
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

ConnectionClosedException

public ConnectionClosedException(java.lang.Exception cause)
Create a new ConnectionClosedException with the given cause, intentionally closed if the cause is.

Parameters:
cause -

ConnectionClosedException

public ConnectionClosedException()
Create a new ConnectionClosedException, intentionally closed.

Method Detail

isIntentionallyClosed

public boolean isIntentionallyClosed()
Returns:
true iff the associated connection was intentionally closed.


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.