public class TraceableDisposable
extends java.lang.Object
Constructor and Description |
---|
TraceableDisposable(boolean debug) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStackTrace() |
void |
kill(java.lang.String msg) |
void |
killExceptionally(java.lang.Throwable throwable) |
void |
throwDisposalError(java.lang.String msg)
in case of "object not disposed" use
throwObjectNotDisposedError(String) instead |
void |
throwObjectNotDisposedError(java.lang.String msg)
Call when object is not disposed while it should
|
public void kill(java.lang.String msg)
public void killExceptionally(java.lang.Throwable throwable)
public void throwObjectNotDisposedError(java.lang.String msg)
public void throwDisposalError(java.lang.String msg) throws java.lang.RuntimeException
throwObjectNotDisposedError(String)
insteadjava.lang.RuntimeException
public java.lang.String getStackTrace()