org.modeshape.graph.request
Class MultipleRequestFailuresException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.modeshape.graph.request.RequestException
                  extended by org.modeshape.graph.request.MultipleRequestFailuresException
All Implemented Interfaces:
Serializable

public class MultipleRequestFailuresException
extends RequestException

A RequestException that wraps multiple failed Request objects.

See Also:
Serialized Form

Constructor Summary
MultipleRequestFailuresException(List<Request> failedRequests, int totalNumberOfRequests)
           
 
Method Summary
 List<Request> getFailedRequests()
           
 String getMessage()
          
 int getTotalNumberOfRequests()
           
 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
 

Constructor Detail

MultipleRequestFailuresException

public MultipleRequestFailuresException(List<Request> failedRequests,
                                        int totalNumberOfRequests)
Parameters:
failedRequests - the failed requests, where each request contains its own exception
totalNumberOfRequests - the total number of requests that were submitted
Method Detail

getTotalNumberOfRequests

public int getTotalNumberOfRequests()
Returns:
totalNumberOfRequests

getFailedRequests

public List<Request> getFailedRequests()
Returns:
failedRequests

getMessage

public String getMessage()

Overrides:
getMessage in class Throwable
See Also:
Throwable.getMessage()

toString

public String toString()

Overrides:
toString in class Throwable
See Also:
Throwable.toString()


Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.