cleanMessage method

String cleanMessage()

Returns the exception message without the "Exception: " part.

Implementation

String cleanMessage() {
  return toString().replaceAll(RegExp(r'\w*Exception\b[:]?[\s]+'), '');
}