groovyx.gpars
Class AsyncException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by groovyx.gpars.AsyncException
All Implemented Interfaces:
java.io.Serializable

public final class AsyncException
extends java.lang.RuntimeException

This class wraps multiple exception, which occurred in concurrently run code inside one of the GParsExecutorsPoolUtil methods.

Author:
Vaclav Pech Date: Nov 17, 2008
See Also:
Serialized Form

Field Summary
private  java.util.List<java.lang.Throwable> concurrentExceptions
           
private static long serialVersionUID
           
 
Constructor Summary
AsyncException(java.lang.String message, java.util.List<java.lang.Throwable> concurrentExceptions)
           
 
Method Summary
private  java.lang.String buildMessage()
           
 java.util.List<java.lang.Throwable> getConcurrentExceptions()
           
 java.lang.String getMessage()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

concurrentExceptions

private final java.util.List<java.lang.Throwable> concurrentExceptions
Constructor Detail

AsyncException

public AsyncException(java.lang.String message,
                      java.util.List<java.lang.Throwable> concurrentExceptions)
Method Detail

getConcurrentExceptions

public java.util.List<java.lang.Throwable> getConcurrentExceptions()

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

buildMessage

private java.lang.String buildMessage()

Copyright © 2008–2010 Václav Pech. All Rights Reserved.