Documentation of 'edu.rit.pj.MultipleParallelException' Java class
MultipleParallelException
edu.rit.pj

Class MultipleParallelException

  • All Implemented Interfaces:
    java.io.Serializable


    public class MultipleParallelException
    extends java.lang.Exception
    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).
    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.
      void printStackTrace(java.io.PrintStream s)
      Print this throwable and its backtrace to the specified print stream.
      void printStackTrace(java.io.PrintWriter s)
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        printStackTrace in class java.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:
        printStackTrace in class java.lang.Throwable
        Parameters:
        s - Print writer to use for output.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.