Class CoroutineScopeException

    • Constructor Summary

      Constructors 
      Constructor Description
      CoroutineScopeException​(java.lang.Throwable cause, java.util.Collection<Continuation<?>> failed)
      Creates a new instance from an explicit causing exception and optional continuations of failed coroutines.
      CoroutineScopeException​(java.util.Collection<Continuation<?>> failed)
      Creates a new instance from the continuations of failed coroutines.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<Continuation<?>> getFailedContinuations()
      Returns the failed continuations that caused this exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CoroutineScopeException

        public CoroutineScopeException​(java.util.Collection<Continuation<?>> failed)
        Creates a new instance from the continuations of failed coroutines. The causing exception will be set to the error of the first element in the argument collection.
        Parameters:
        failed - The failed continuations
      • CoroutineScopeException

        public CoroutineScopeException​(java.lang.Throwable cause,
                                       java.util.Collection<Continuation<?>> failed)
        Creates a new instance from an explicit causing exception and optional continuations of failed coroutines.
        Parameters:
        cause - The causing exception
        failed - The failed continuations (optional)
    • Method Detail

      • getFailedContinuations

        public java.util.Collection<Continuation<?>> getFailedContinuations()
        Returns the failed continuations that caused this exception. The actual error exceptions can be queried with Continuation.getError().
        Returns:
        The continuation