isSagaError function

bool isSagaError(
  1. dynamic e
)

Checks whether error e or e.message is a SagaError

Implementation

bool isSagaError(dynamic e) =>
    e is SagaError || e is _SagaInternalException && e.message is SagaError;