public final class Signal
extends java.lang.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(java.lang.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. |
java.lang.Throwable |
fillInStackTrace() |
java.lang.Throwable |
initCause(java.lang.Throwable cause) |
java.lang.String |
toString() |
static Signal |
valueOf(java.lang.String name)
Creates a new
Signal with the specified name. |
@Deprecated public Signal(java.lang.String name)
valueOf(String) instead.public static Signal valueOf(java.lang.String name)
Signal with the specified name.public void expect(Signal signal)
Signal is the same as this instance. If not an IllegalStateException will
be thrown.public java.lang.Throwable initCause(java.lang.Throwable cause)
initCause in class java.lang.Throwablepublic java.lang.Throwable fillInStackTrace()
fillInStackTrace in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.ThrowableCopyright © 2008–2018 The Netty Project. All rights reserved.