#include <mim/util/dbg.h>
|
|
| | Error ()=default |
| |
| | Error (const Error &)=default |
| |
| | Error (Error &&other) |
| |
| | Error (Loc loc, const std::string &str) |
| | Creates a single Tag::Error message.
|
| |
|
| const auto & | msgs () const |
| |
| size_t | num_msgs () const |
| |
| size_t | num_errors () const |
| |
| size_t | num_warnings () const |
| |
| size_t | num_notes () const |
| |
|
| template<class... Args> |
| Error & | msg (Loc loc, Tag tag, const char *s, Args &&... args) |
| |
| template<class... Args> |
| Error & | error (Loc loc, const char *s, Args &&... args) |
| |
| template<class... Args> |
| Error & | warn (Loc loc, const char *s, Args &&... args) |
| |
| template<class... Args> |
| Error & | note (Loc loc, const char *s, Args &&... args) |
| |
|
| void | clear () |
| |
| void | ack (std::ostream &os=std::cerr) |
| | If errors occured, claim them and throw; if warnings occured, claim them and report to os.
|
| |
Definition at line 17 of file dbg.h.
◆ Tag
| Enumerator |
|---|
| Error | |
| Warn | |
| Note | |
Definition at line 19 of file dbg.h.
◆ Error() [1/4]
◆ Error() [2/4]
| mim::Error::Error |
( |
const Error & | | ) |
|
|
default |
◆ Error() [3/4]
| mim::Error::Error |
( |
Error && | other | ) |
|
|
inline |
◆ Error() [4/4]
| mim::Error::Error |
( |
Loc | loc, |
|
|
const std::string & | str ) |
|
inline |
◆ ack()
| void mim::Error::ack |
( |
std::ostream & | os = std::cerr | ) |
|
If errors occured, claim them and throw; if warnings occured, claim them and report to os.
Definition at line 15 of file dbg.cpp.
References mim::print().
◆ clear()
| void mim::Error::clear |
( |
| ) |
|
◆ error()
template<class... Args>
| Error & mim::Error::error |
( |
Loc | loc, |
|
|
const char * | s, |
|
|
Args &&... | args ) |
|
inline |
◆ msg()
template<class... Args>
| Error & mim::Error::msg |
( |
Loc | loc, |
|
|
Tag | tag, |
|
|
const char * | s, |
|
|
Args &&... | args ) |
|
inline |
◆ msgs()
| const auto & mim::Error::msgs |
( |
| ) |
const |
|
inline |
Definition at line 53 of file dbg.h.
◆ note()
template<class... Args>
| Error & mim::Error::note |
( |
Loc | loc, |
|
|
const char * | s, |
|
|
Args &&... | args ) |
|
inline |
◆ num_errors()
| size_t mim::Error::num_errors |
( |
| ) |
const |
|
inline |
◆ num_msgs()
| size_t mim::Error::num_msgs |
( |
| ) |
const |
|
inline |
◆ num_notes()
| size_t mim::Error::num_notes |
( |
| ) |
const |
|
inline |
◆ num_warnings()
| size_t mim::Error::num_warnings |
( |
| ) |
const |
|
inline |
◆ warn()
template<class... Args>
| Error & mim::Error::warn |
( |
Loc | loc, |
|
|
const char * | s, |
|
|
Args &&... | args ) |
|
inline |
◆ operator<< [1/2]
| std::ostream & operator<< |
( |
std::ostream & | o, |
|
|
Tag | tag ) |
|
friend |
◆ operator<< [2/2]
| std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Error & | e ) |
|
friend |
◆ swap
The documentation for this class was generated from the following files: