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.
Modifier and Type | Class and Description |
---|---|
private static class |
Modifier and Type | Field and Description |
---|---|
private final Signal. | |
private static final ConstantPool | |
private static final long |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public int | compareTo(Signal
the object to be compared. other)Implements java. |
public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
public void | |
public Throwable | fillInStackTrace()
Overrides java. |
public int | |
public int | |
public Throwable | initCause(Throwable
the cause (which is saved for later retrieval by the
cause)getCause() method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)Overrides java. |
public String | |
public String | |
public static Signal | |
public static Signal | valueOf(Class<?> firstNameComponent, String secondNameComponent)
Shortcut of |
constant | back to summary |
---|---|
private final Signal. |
pool | back to summary |
---|---|
private static final ConstantPool<Signal> pool |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
Signal | back to summary |
---|---|
private Signal(int id, String name) Creates a new |
compareTo | back to summary |
---|---|
public int compareTo(Signal other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that |
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. |
expect | back to summary |
---|---|
public void expect(Signal signal) Check if the given |
fillInStackTrace | back to summary |
---|---|
public Throwable fillInStackTrace() Overrides java. Doc from java. Fills in the execution stack trace. This method records within this
If the stack trace of this |
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
|
id | back to summary |
---|---|
public int id() Implements io. Doc from io. Returns the unique number assigned to this
|
initCause | back to summary |
---|---|
public Throwable initCause(Throwable cause) Overrides java. Doc from java. Initializes the cause of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.) This method can be called at most once. It is generally called from
within the constructor, or immediately after creating the
throwable. If this throwable was created
with An example of using this method on a legacy throwable type without other support for setting the cause is: try { lowLevelOp(); } catch (LowLevelException le) { throw (HighLevelException) new HighLevelException().initCause(le); // Legacy constructor }
|
name | back to summary |
---|---|
public String name() Implements io. Doc from io. Returns the name of this
|
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null , then just
the class name is returned.
|
valueOf | back to summary |
---|---|
public static Signal valueOf(String name) Returns the |
valueOf | back to summary |
---|---|
public static Signal valueOf(Class<?> firstNameComponent, String secondNameComponent) Shortcut of |
Access | Constructor and Description |
---|---|
pack-priv |
SignalConstant | back to summary |
---|---|
pack-priv SignalConstant(int id, String name) |