A non-exceptional representation of a problem in source code. More...
#include <ErrorReport.h>
Public Types | |
enum | Severity { Error, Warning, Message } |
typedef std::function< void(std::string, SourceRange, Severity)> | Report |
Public Member Functions | |
const std::string & | getMessage () const |
void | PrettyPrint (Bytestream &out, size_t indent=0) const override |
Print a human-readable representation to an output stream and return that output stream. | |
Public Member Functions inherited from fabrique::HasSource | |
HasSource (const SourceRange &src) | |
const SourceRange & | source () const |
Public Member Functions inherited from fabrique::Printable | |
Printable (const Printable &) | |
Printable & | operator= (const Printable &) |
virtual std::string | str () const |
Static Public Member Functions | |
static ErrorReport * | Create (const std::string &message, const SourceRange &loc=SourceRange::None(), Severity severity=Severity::Error, size_t contextLines=3) |
A non-exceptional representation of a problem in source code.
Definition at line 45 of file ErrorReport.h.