public final class Signal extends Error
Error
which is used to signal some state or request by throwing it.
Signal
has an empty stack trace and has no cause to save the instantiation overhead.Constructor and Description |
---|
Signal(String name)
Deprecated.
Use
valueOf(String) instead. |
Modifier and Type | Method and Description |
---|---|
void |
expect(Signal signal)
Check if the given
Signal is the same as this instance. |
Throwable |
fillInStackTrace() |
Throwable |
initCause(Throwable cause) |
String |
toString() |
static Signal |
valueOf(String name)
Creates a new
Signal with the specified name . |
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace
@Deprecated public Signal(String name)
valueOf(String)
instead.public void expect(Signal signal)
Signal
is the same as this instance. If not an IllegalStateException
will
be thrown.public Throwable fillInStackTrace()
fillInStackTrace
in class Throwable
Copyright © 2008-2016 The Netty Project. All Rights Reserved.