public class InterruptException
extends java.lang.RuntimeException
InterruptCode which is used to provide the interrupted
processes with information about the reason for their interruption.InterruptCode,
Serialized Form| Constructor and Description |
|---|
InterruptException(InterruptCode interruptCode)
Constructs an
InterruptException containing the given
InterruptCode. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Equals implementations which delegates to
Object.equals(Object) |
InterruptCode |
getInterruptCode()
Returns the
InterruptCode associated with this
InterruptException. |
int |
hashCode()
HashCode implementations which delegates to
Object.hashCode() |
public InterruptException(InterruptCode interruptCode)
InterruptException containing the given
InterruptCode.interruptCode - The InterruptCode which is to be transported inside of this
InterruptException.public boolean equals(java.lang.Object obj)
Object.equals(Object)equals in class java.lang.Objectpublic InterruptCode getInterruptCode()
InterruptCode associated with this
InterruptException. The InterruptCode contains information on the reason
for a process's interruption.public int hashCode()
Object.hashCode()hashCode in class java.lang.Object