InterruptedException, which may include the source, see getInterruptSource().
This exception may be created directly where getCause() returns null,
or by propagating an existing InterruptedException as returned by getCause().
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Throwable |
| Access | Constructor and Description |
|---|---|
| public | SourcedInterruptedException(final String
mandatory message of this exception message, final InterruptedException optional propagated cause cause, final Throwable optional propagated source of interruptSource)Thread#interrupt() call
|
| public | SourcedInterruptedException(final InterruptedException
mandatory propagated cause cause, final Throwable optional propagated source of interruptSource)Thread#interrupt() call
|
| Modifier and Type | Method and Description |
|---|---|
| public InterruptedException | getCause()
Overrides java. InterruptedException, i.e. the cause of this exception,
or null if not applicable.
|
| public final Throwable | getInterruptSource()
Returns the source of the |
| public final void | printCauseStack(final PrintStream
output stream s, final String the cause title causeStr, final int the cause index over all causes known by caller causeIdx, final int the maximum depth for stack entries, or stackDepth)-1 for allImplements com. Throwable as a cause to the output PrintStream s,
not iterating over all inner causes!
|
| public final void | printStackTrace(final PrintStream
output stream s, final int the maximum depth for causes, or causeDepth, final int -1 for allthe maximum depth for stack entries, or stackDepth)-1 for allImplements com. printStackTrace method, similar to Throwable#printStackTrace(PrintStream, int, int).
|
| public String | |
| public static InterruptedException | wrap(final InterruptedException
the to be wrapped ie)InterruptedExceptionWraps the given |
| public static InterruptedException | wrap(final InterruptedException
the to be wrapped ie, final InterruptSource InterruptedExceptionthe source)InterruptSourceWraps the given |
| interruptSource | back to summary |
|---|---|
| pack-priv final Throwable interruptSource | |
| SourcedInterruptedException | back to summary |
|---|---|
public SourcedInterruptedException(final String message, final InterruptedException cause, final Throwable interruptSource)
| |
| SourcedInterruptedException | back to summary |
|---|---|
public SourcedInterruptedException(final InterruptedException cause, final Throwable interruptSource)
| |
| getCause | back to summary |
|---|---|
| public InterruptedException getCause() Overrides java. Doc from java. Returns the propagated
Returns the cause of this throwable or This implementation returns the cause that was supplied via one of
the constructors requiring a
| |
| getInterruptSource | back to summary |
|---|---|
| public final Throwable getInterruptSource() Returns the source of the | |
| printCauseStack | back to summary |
|---|---|
| public final void printCauseStack(final PrintStream s, final String causeStr, final int causeIdx, final int stackDepth) Implements com. Doc from com. Prints this
| |
| printStackTrace | back to summary |
|---|---|
| public final void printStackTrace(final PrintStream s, final int causeDepth, final int stackDepth) Implements com. Doc from com. Custom
| |
| 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.
| |
| wrap | back to summary |
|---|---|
| public static InterruptedException wrap(final InterruptedException ie) Wraps the given
Otherwise the given
In case method is creating a new wrapping instance,
| |
| wrap | back to summary |
|---|---|
| public static InterruptedException wrap(final InterruptedException ie, final InterruptSource source) Wraps the given
Otherwise the given
In case method is creating a new wrapping instance,
| |