Loading...
Searching...
No Matches
errorable.hpp
Go to the documentation of this file.
1
2#pragma once
3
6
7namespace by {
8
14 class _nout errorable: public dumpable {
15 public:
19 virtual void log() const = 0;
20
24 void dbgLog() const;
25
29 virtual void logStack() const = 0;
30 virtual const std::string& getMsg() const = 0;
31 virtual errLv::level getLv() const = 0;
32
36 const std::string& getLevelName() const;
37 };
38}
Interface for objects that can dump their state.
Definition dumpable.hpp:13
Interface for objects that can report errors.
Definition errorable.hpp:14
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.