getErrorMessage method
Constructs the error message for this exception.
Implementation
String getErrorMessage({
required String exceptionType,
required String hint,
}) {
final StringBuffer buffer = StringBuffer(exceptionType);
if (message != null) {
buffer.write(": $message");
}
buffer.write("\n$hint");
return buffer.toString();
}