Package edu.rit.pj
Class MultipleParallelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
edu.rit.pj.MultipleParallelException
- All Implemented Interfaces:
Serializable
Class MultipleParallelException is thrown to indicate that multiple threads
in a parallel team threw exceptions while executing a parallel construct. The
individual exceptions thrown by the threads are contained in a Map mapping the thread index (type Integer) to the exception
thrown by that thread (type Throwable).
- Version:
- 16-May-2007
- Author:
- Alan Kaminsky
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a new multiple parallel exception with no detail message and no exception map.MultipleParallelException
(String theMessage) Create a new multiple parallel exception with the given detail message and no exception map.MultipleParallelException
(String theMessage, ConcurrentHashMap<Integer, Throwable> theMap) Create a new multiple parallel exception with the given detail message and the given exception map.Create a new multiple parallel exception with no detail message and the given exception map. -
Method Summary
Modifier and TypeMethodDescriptionObtain this multiple parallel exception's exception map.void
Print this throwable and its backtrace to the specified print stream.void
Print this throwable and its backtrace to the specified print writer.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MultipleParallelException
public MultipleParallelException()Create a new multiple parallel exception with no detail message and no exception map. -
MultipleParallelException
Create a new multiple parallel exception with the given detail message and no exception map.- Parameters:
theMessage
- Detail message.
-
MultipleParallelException
Create a new multiple parallel exception with no detail message and the given exception map.- Parameters:
theMap
- Exception map.
-
MultipleParallelException
Create a new multiple parallel exception with the given detail message and the given exception map.- Parameters:
theMessage
- Detail message.theMap
- Exception map.
-
-
Method Details
-
getExceptionMap
Obtain this multiple parallel exception's exception map.- Returns:
- Exception map, or null if none.
-
printStackTrace
Print this throwable and its backtrace to the specified print stream. The stack traces of this multiple parallel exception itself and of all the wrapped exceptions in the exception map are printed.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Print this throwable and its backtrace to the specified print writer. The stack traces of this multiple parallel exception itself and of all the wrapped exceptions in the exception map are printed.- Overrides:
printStackTrace
in classThrowable
- Parameters:
s
- Print writer to use for output.
-