guard<T> function
Implementation
T guard<T>(MapperMethod method, String hint, T Function() fn) {
try {
return fn();
} catch (e) {
throw MapperException.chain(method, hint, e);
}
}
T guard<T>(MapperMethod method, String hint, T Function() fn) {
try {
return fn();
} catch (e) {
throw MapperException.chain(method, hint, e);
}
}