error property

string get error

Implementation

string get error {
  if (hasError) return message;
  return "";
}