Returns a user-friendly string containing the errors stored in the buffer. With warningsAsErrors=true, it reports warnings as if they were errors.
impure function getErrorString input Boolean warningsAsErrors = false; output String errorString; end getErrorString;