errorable.hpp
Go to the documentation of this file.
1
2#pragma once
3
6
7namespace by {
8
13 class _nout errorable: public dumpable {
14 public:
16 virtual void log() const = 0;
18 void dbgLog() const;
20 virtual void logStack() const = 0;
21 virtual const std::string& getMsg() const = 0;
22 virtual errLv::level getLv() const = 0;
24 const std::string& getLevelName() const;
25 };
26}
Interface for objects that can dump their state.
Definition: dumpable.hpp:12
Interface for objects that can report errors.
Definition: errorable.hpp:13
void dbgLog() const
Log error in debug mode only.
virtual void log() const =0
Log error message.
virtual void logStack() const =0
Log error with stack trace.
const std::string & getLevelName() const
Get human-readable error level name.