sapphirec
The Sapphire documentation
Error Namespace Reference

Functions

void show_import_line (const Location &loc, std::ostream &output_stream)
 
void throw_error (const Location &loc, const std::string line_text, const std::string &details)
 
void throw_error_without_location (const std::string &details)
 
void throw_warning (const Location &loc, const std::string line_text, const std::string &details)
 
void show_import_lines (const Location &loc, void(*import_line_printer)(const Location &, std::ostream &), std::ostream &stream)
 

Function Documentation

◆ show_import_line()

void Error::show_import_line ( const Location loc,
std::ostream &  output_stream 
)

◆ show_import_lines()

void Error::show_import_lines ( const Location loc,
void(*)(const Location &, std::ostream &)  import_line_printer,
std::ostream &  stream 
)

◆ throw_error()

void Error::throw_error ( const Location loc,
const std::string  line_text,
const std::string &  details 
)

◆ throw_error_without_location()

void Error::throw_error_without_location ( const std::string &  details)

◆ throw_warning()

void Error::throw_warning ( const Location loc,
const std::string  line_text,
const std::string &  details 
)