message property

String get message

Implementation

String get message {
  if(exception is Exception){
    return exception.message;
  }

  return exception.toString();
}