toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  StringBuffer buffer = StringBuffer();
  buffer.write('$runtimeType: ');
  buffer.writeln(message);
  if (cause != null) {
    buffer.write('Caused by ');
    cause._writeOn(buffer);
  }
  return buffer.toString();
}