decode static method
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;
}