sapphirec
The Sapphire documentation
Error.h
Go to the documentation of this file.
1 #pragma once
2 #include "Location.h"
3 
4 namespace Error
5 {
6 void show_import_line(const Location& loc, std::ostream& output_stream);
7 
8 [[noreturn]] void throw_error(const Location& loc, const std::string line_text, const std::string& details);
9 
10 [[noreturn]] void throw_error_without_location(const std::string& details);
11 
12 void throw_warning(const Location& loc, const std::string line_text, const std::string& details);
13 
14 void show_import_lines(const Location& loc, void (*import_line_printer)(const Location&, std::ostream&),
15  std::ostream& stream);
16 } // namespace Error
Definition: Error.h:5
void throw_error(const Location &loc, const std::string line_text, const std::string &details)
Definition: Error.cpp:41
void show_import_lines(const Location &loc, void(*import_line_printer)(const Location &, std::ostream &), std::ostream &stream)
Definition: Error.cpp:21
void throw_error_without_location(const std::string &details)
Definition: Error.cpp:74
void show_import_line(const Location &loc, std::ostream &output_stream)
Definition: Error.cpp:7
void throw_warning(const Location &loc, const std::string line_text, const std::string &details)
Definition: Error.cpp:88
Definition: Location.h:6