getTraceMessage method
Concatenate the error messages in the exceptionList and returns a trace message
Implementation
String getTraceMessage() {
var size = _exceptionList.length;
String fullMessage = '';
if (size > 0) {
fullMessage =
'${getIntentMessage(_exceptionList.first.intent)} caused by\n';
}
for (AtChainedException element in _exceptionList) {
size--;
fullMessage += element.message;
if (size != 0) {
fullMessage += ' caused by\n';
}
}
return fullMessage;
}