|
Sen API
Sen Libraries
|
Utility class for reporting errors in the source code. More...
#include <error_reporter.h>
Public Types | |
| using | ReportFunc = std::function<void(const CodeLocation&, const std::string&, std::size_t, bool isWarning)> |
| A function that reports the error to some sink. | |
Static Public Member Functions | |
| static void | report (const CodeLocation &loc, const std::string &message, std::size_t width=0U, bool isWarning=false) |
| Reports an error using the defined function. | |
Utility class for reporting errors in the source code.
| using sen::lang::ErrorReporter::ReportFunc = std::function<void(const CodeLocation&, const std::string&, std::size_t, bool isWarning)> |
A function that reports the error to some sink.
|
static |
Reports an error using the defined function.
| loc | the place where the error is located. |
| message | human-readable error message. |
| width | (optional) width of the error (in characters). |
| isWarning | (optional) true if we should mark the problem as a warning. |