decode static method

dynamic decode(
  1. Object exception
)

Decode exception

Implementation

static decode(Object exception) {
  for (PipenRequestFailError error in errors) {
    bool valid = error.isException(exception);
    if (valid) {
      try {
        error.build(exception);
        throw exception;
      } catch (e) {
        rethrow;
      }
    }
  }

  throw exception;
}