FE 0.13.1
Header-only C++ frontend library
Loading...
Searching...
No Matches
fe::Error::Bail Class Reference

What Error::ack and Error::bail throw. More...

#include <fe/error.h>

Inheritance diagram for fe::Error::Bail:
[legend]

Public Member Functions

 Bail (std::string what, size_t num_errors, size_t num_warnings)
const char * what () const noexcept override
size_t num_errors () const
size_t num_warnings () const

Friends

std::ostream & operator<< (std::ostream &os, const Bail &bail)

Detailed Description

What Error::ack and Error::bail throw.

It carries the finished text, so nothing in here points into a SrcMap any more and it may propagate past the Driver - and the Srcs - that produced it.

Definition at line 34 of file error.h.

Constructor & Destructor Documentation

◆ Bail()

fe::Error::Bail::Bail ( std::string what,
size_t num_errors,
size_t num_warnings )
inline

Definition at line 36 of file error.h.

References num_errors(), num_warnings(), and what().

Referenced by fe::Error::bail(), and operator<<.

Member Function Documentation

◆ num_errors()

size_t fe::Error::Bail::num_errors ( ) const
inline

Definition at line 42 of file error.h.

Referenced by Bail().

◆ num_warnings()

size_t fe::Error::Bail::num_warnings ( ) const
inline

Definition at line 43 of file error.h.

Referenced by Bail().

◆ what()

const char * fe::Error::Bail::what ( ) const
inlineoverridenoexcept

Definition at line 41 of file error.h.

Referenced by Bail().

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const Bail & bail )
friend

Definition at line 45 of file error.h.

References Bail(), and fe::Error::bail().


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