toString method

  1. @override
String toString()
override

Returns the message of the exception as its string representation.

Implementation

@override
String toString() {
  return message;
}