Fabrique

A build language for complex systems

 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
fabrique::ErrorReport Class Reference

A non-exceptional representation of a problem in source code. More...

#include <ErrorReport.h>

Inheritance diagram for fabrique::ErrorReport:
fabrique::HasSource fabrique::Printable

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 SourceRangesource () const
 
- Public Member Functions inherited from fabrique::Printable
 Printable (const Printable &)
 
Printableoperator= (const Printable &)
 
virtual std::string str () const
 

Static Public Member Functions

static ErrorReportCreate (const std::string &message, const SourceRange &loc=SourceRange::None(), Severity severity=Severity::Error, size_t contextLines=3)
 

Detailed Description

A non-exceptional representation of a problem in source code.

Definition at line 45 of file ErrorReport.h.


The documentation for this class was generated from the following files: