cleanMessage method
Returns the exception message without the "Exception: " part.
Implementation
String cleanMessage() {
return toString().replaceAll(RegExp(r'\w*Exception\b[:]?[\s]+'), '');
}
Returns the exception message without the "Exception: " part.
String cleanMessage() {
return toString().replaceAll(RegExp(r'\w*Exception\b[:]?[\s]+'), '');
}