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)
Create a new instance
|
| 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() |
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic Signal(String name)
name - the name under which it is registeredpublic void expect(Signal signal)
Signal is the same as this instance. If not an IllegalStateException will
be thrown.public Throwable fillInStackTrace()
fillInStackTrace in class ThrowableCopyright © 2008-2013 The Netty Project. All Rights Reserved.