AsyncNinjaError

public enum AsyncNinjaError : Swift.Error, Equatable

Errors produced by AsyncNinja

  • An error of cancelled primitive. Promises and Producers can be cancecelled with method cancel(). CancellationToken may be used in multiple other cases

    Declaration

    Swift

    case cancelled
  • An error of deallocated context Basically means that execution was bound to context, by context was deallocated before execution started

    Declaration

    Swift

    case contextDeallocated
  • An error of failed dynamic cast

    Declaration

    Swift

    case dynamicCastFailed
  • This error can be thrown (or complete primitive) if network reachability setup failed

    Declaration

    Swift

    case networkReachabilityDetectionFailed
  • returns true if the error is actually a cancellation

    Declaration

    Swift

    public var representsCancellation: Bool { get }