toString method

String toString()
override

Gets a message describing the type and location of this error. @return the error message

Implementation

String toString() {
  String locStr = "";
  if (pt != null) locStr = " at or near point $pt";
  return getMessage() + locStr;
}