instrumentError method
Implementation
void instrumentError(String? correlationId, String name, err,
[bool? reerror = false]) {
if (err != null) {
logger.error(correlationId, ApplicationException().wrap(err),
'Failed to execute %s method', [name]);
counters.incrementOne(name + '.exec_errors');
if (reerror != null && reerror == true) {
throw err;
}
}
}