public final class Signal extends Exception implements Constant<Signal>
Exception 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.
Forked from Netty.| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(Signal other) |
boolean |
equals(Object obj) |
void |
expect(Signal signal)
Check if the given
Signal is the same as this instance. |
Throwable |
fillInStackTrace() |
int |
hashCode() |
int |
id()
Returns the unique number assigned to this
Constant. |
Throwable |
initCause(Throwable cause) |
String |
name()
Returns the name of this
Constant. |
String |
toString() |
static Signal |
valueOf(Class<?> firstNameComponent,
String secondNameComponent)
|
static Signal |
valueOf(String name)
Returns the
Signal of the specified name. |
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic void expect(Signal signal)
Signal is the same as this instance. If not
an IllegalStateException will be thrown.public Throwable fillInStackTrace()
fillInStackTrace 在类中 Throwablepublic int compareTo(Signal other)
compareTo 在接口中 Comparable<Signal>Copyright © 2018. All rights reserved.