com.jrockit.memleak
Class ConnectionClosedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.jrockit.memleak.MemLeakException
com.jrockit.memleak.spi.SpiException
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. |
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 |
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.
isIntentionallyClosed
public boolean isIntentionallyClosed()
- Returns:
- true iff the associated connection was intentionally closed.
Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.