edu.rit.pj
Class MultipleParallelException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- edu.rit.pj.MultipleParallelException
-
- All Implemented Interfaces:
- java.io.Serializable
public class MultipleParallelException extends java.lang.ExceptionClass 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).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description MultipleParallelException()Create a new multiple parallel exception with no detail message and no exception map.MultipleParallelException(java.util.Map<java.lang.Integer,java.lang.Throwable> theMap)Create a new multiple parallel exception with no detail message and the given exception map.MultipleParallelException(java.lang.String theMessage)Create a new multiple parallel exception with the given detail message and no exception map.MultipleParallelException(java.lang.String theMessage, java.util.Map<java.lang.Integer,java.lang.Throwable> theMap)Create a new multiple parallel exception with the given detail message and the given exception map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.Map<java.lang.Integer,java.lang.Throwable>getExceptionMap()Obtain this multiple parallel exception's exception map.voidprintStackTrace(java.io.PrintStream s)Print this throwable and its backtrace to the specified print stream.voidprintStackTrace(java.io.PrintWriter s)Print this throwable and its backtrace to the specified print writer.
-
-
-
Constructor Detail
-
MultipleParallelException
public MultipleParallelException()
Create a new multiple parallel exception with no detail message and no exception map.
-
MultipleParallelException
public MultipleParallelException(java.lang.String theMessage)
Create a new multiple parallel exception with the given detail message and no exception map.- Parameters:
theMessage- Detail message.
-
MultipleParallelException
public MultipleParallelException(java.util.Map<java.lang.Integer,java.lang.Throwable> theMap)
Create a new multiple parallel exception with no detail message and the given exception map.- Parameters:
theMap- Exception map.
-
MultipleParallelException
public MultipleParallelException(java.lang.String theMessage, java.util.Map<java.lang.Integer,java.lang.Throwable> theMap)Create a new multiple parallel exception with the given detail message and the given exception map.- Parameters:
theMessage- Detail message.theMap- Exception map.
-
-
Method Detail
-
getExceptionMap
public java.util.Map<java.lang.Integer,java.lang.Throwable> getExceptionMap()
Obtain this multiple parallel exception's exception map.- Returns:
- Exception map, or null if none.
-
printStackTrace
public void printStackTrace(java.io.PrintStream s)
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:
printStackTracein classjava.lang.Throwable- Parameters:
s- Print stream to use for output.
-
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
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:
printStackTracein classjava.lang.Throwable- Parameters:
s- Print writer to use for output.
-
-
DMelt 3.0 © DataMelt by jWork.ORG