FE 0.13.1
Header-only C++ frontend library
Loading...
Searching...
No Matches
error.h File Reference
#include <cassert>
#include <array>
#include <exception>
#include <format>
#include <functional>
#include <iostream>
#include <sstream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "fe/diag.h"
#include "fe/format.h"
#include "fe/loc.h"
#include "fe/term.h"
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fe::Error
 Collects diagnostics and hands each to the Diag that lays it out. More...
class  fe::Error::Bail
 What Error::ack and Error::bail throw. More...
struct  fe::Error::Note
 A secondary message elaborating a Msg. More...
struct  fe::Error::Msg
 One Tag::Error or Tag::Warn together with the Notes that belong to it. More...

Namespaces

namespace  fe

Class Documentation

◆ fe::Error::Note

struct fe::Error::Note

A secondary message elaborating a Msg.

A Note with a Loc of its own reads as a diagnostic of its own - header line plus snippet; one without has nowhere else to point and renders as a = note: continuation line.

Definition at line 56 of file error.h.

Class Members
Loc loc
string str

◆ fe::Error::Msg

struct fe::Error::Msg

One Tag::Error or Tag::Warn together with the Notes that belong to it.

Definition at line 62 of file error.h.

Class Members
Loc loc
vector< Note > notes
string str
Tag tag