handleErrorWith method

Decoder<A> handleErrorWith(
  1. Decoder<A> onFailure(
    1. DecodingError
    )
)

Implementation

Decoder<A> handleErrorWith(Decoder<A> Function(DecodingError) onFailure) =>
    Decoder._unkeyed((json) =>
        decode(json).fold((err) => onFailure(err).decode(json), right));