|
jaulib v1.4.1
Jau Support Library (C++, Java, ..)
|
InterruptedException, which may include the source, see getInterruptSource().
More...
Public Member Functions | |
| SourcedInterruptedException (final String message, final InterruptedException cause, final Throwable interruptSource) | |
| SourcedInterruptedException (final InterruptedException cause, final Throwable interruptSource) | |
| final Throwable | getInterruptSource () |
Returns the source of the Thread#interrupt() call if known, otherwise null is returned. | |
| InterruptedException | getCause () |
Returns the propagated InterruptedException, i.e. | |
| String | toString () |
| final void | printCauseStack (final PrintStream s, final String causeStr, final int causeIdx, final int stackDepth) |
Prints this Throwable as a cause to the output PrintStream s, not iterating over all inner causes! | |
| final void | printStackTrace (final PrintStream s, final int causeDepth, final int stackDepth) |
Custom printStackTrace method, similar to Throwable#printStackTrace(PrintStream, int, int). | |
Static Public Member Functions | |
| static InterruptedException | wrap (final InterruptedException ie) |
Wraps the given InterruptedException into a SourcedInterruptedException if it is not yet of the desired type and if the current thread if a InterruptSource, i.e. | |
| static InterruptedException | wrap (final InterruptedException ie, final InterruptSource source) |
Wraps the given InterruptedException into a SourcedInterruptedException if it is not yet of the same type and if source is not null. | |
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().
Definition at line 42 of file SourcedInterruptedException.java.
| org.jau.lang.SourcedInterruptedException.SourcedInterruptedException | ( | final String | message, |
| final InterruptedException | cause, | ||
| final Throwable | interruptSource ) |
| message | mandatory message of this exception |
| cause | optional propagated cause |
| interruptSource | optional propagated source of Thread#interrupt() call |
Definition at line 90 of file SourcedInterruptedException.java.
| org.jau.lang.SourcedInterruptedException.SourcedInterruptedException | ( | final InterruptedException | cause, |
| final Throwable | interruptSource ) |
| cause | mandatory propagated cause |
| interruptSource | optional propagated source of Thread#interrupt() call |
Definition at line 102 of file SourcedInterruptedException.java.
| InterruptedException org.jau.lang.SourcedInterruptedException.getCause | ( | ) |
Returns the propagated InterruptedException, i.e.
the cause of this exception, or null if not applicable.
Definition at line 124 of file SourcedInterruptedException.java.
| final Throwable org.jau.lang.SourcedInterruptedException.getInterruptSource | ( | ) |
Returns the source of the Thread#interrupt() call if known, otherwise null is returned.
Definition at line 112 of file SourcedInterruptedException.java.
| final void org.jau.lang.SourcedInterruptedException.printCauseStack | ( | final PrintStream | s, |
| final String | causeStr, | ||
| final int | causeIdx, | ||
| final int | stackDepth ) |
Prints this Throwable as a cause to the output PrintStream s, not iterating over all inner causes!
| s | output stream |
| causeStr | the cause title |
| causeIdx | the cause index over all causes known by caller |
| stackDepth | the maximum depth for stack entries, or -1 for all |
Implements org.jau.lang.ExceptionUtils.CustomStackTrace.
Definition at line 145 of file SourcedInterruptedException.java.
| final void org.jau.lang.SourcedInterruptedException.printStackTrace | ( | final PrintStream | s, |
| final int | causeDepth, | ||
| final int | stackDepth ) |
Custom printStackTrace method, similar to Throwable#printStackTrace(PrintStream, int, int).
| s | output stream |
| causeDepth | the maximum depth for causes, or -1 for all |
| stackDepth | the maximum depth for stack entries, or -1 for all |
Implements org.jau.lang.ExceptionUtils.CustomStackTrace.
Definition at line 155 of file SourcedInterruptedException.java.
| String org.jau.lang.SourcedInterruptedException.toString | ( | ) |
Definition at line 129 of file SourcedInterruptedException.java.
|
static |
Wraps the given InterruptedException into a SourcedInterruptedException if it is not yet of the desired type and if the current thread if a InterruptSource, i.e.
the source is known.
Otherwise the given InterruptedException instance is returned.
In case method is creating a new wrapping instance, InterruptSource#clearInterruptSource() is being issued.
| ie | the to be wrapped InterruptedException |
Definition at line 59 of file SourcedInterruptedException.java.
|
static |
Wraps the given InterruptedException into a SourcedInterruptedException if it is not yet of the same type and if source is not null.
Otherwise the given InterruptedException instance is returned.
In case method is creating a new wrapping instance, InterruptSource#clearInterruptSource() is being issued.
| ie | the to be wrapped InterruptedException |
| source | the InterruptSource |
Definition at line 77 of file SourcedInterruptedException.java.