err.hpp
Go to the documentation of this file.
1
2#pragma once
3
6
7namespace by {
11 class _nout err: public baseErr {
12 BY(CLASS(err, baseErr))
13 template <typename T, nbool> friend struct tmarshaling;
14
15 public:
16 err(const nStr& msg);
17 err();
18
19 public:
20 nbool operator==(const super& rhs) const override;
21
22 public:
23 void log() const override;
24 const std::string& getMsg() const override;
25
26 const baseObj& getOrigin() const override;
27
28 private:
29 tstr<nStr> _msg;
30 };
31}
Base class for all error types.
Definition: baseErr.hpp:12
Base class for all objects in byeol language.
Definition: baseObj.hpp:24
Standard error implementation.
Definition: err.hpp:11
void log() const override
Log error message.
String primitive type in byeol language.
Definition: nStr.hpp:13
Strong reference smart pointer with strict type checking.
Definition: tstr.hpp:13
Template marshaling interface for C++ bridge.
Definition: tmarshaling.hpp:18