public final class StacklessClosedChannelException
extends java.nio.channels.ClosedChannelException
ClosedChannelException
that will not not fill in the stacktrace but use a cheaper way of producing
limited stacktrace details for the user.Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
fillInStackTrace() |
static StacklessClosedChannelException |
newInstance(java.lang.Class<?> clazz,
java.lang.String method)
Creates a new
StacklessClosedChannelException instance. |
public java.lang.Throwable fillInStackTrace()
fillInStackTrace
in class java.lang.Throwable
public static StacklessClosedChannelException newInstance(java.lang.Class<?> clazz, java.lang.String method)
StacklessClosedChannelException
instance.clazz
- The class in which this StacklessClosedChannelException
will be used.method
- The method from which it will be thrown.