toString method

  1. @override
String toString()
override

Returns a string representation of the exception, including the message and the cause if available.

Implementation

@override
String toString() {
  if (cause != null) {
    return 'BrowserException: $message (Cause: $cause)';
  }
  return 'BrowserException: $message';
}