subrepo: subdir: "xo-interpreter" merged: "047658a5" upstream: origin: "git@github.com:Rconybea/xo-interpreter.git" branch: "main" commit: "047658a5" git-subrepo: version: "0.4.9" origin: "???" commit: "???"
28 lines
604 B
C++
28 lines
604 B
C++
/** @file SchematikaError.hpp
|
|
*
|
|
* @author Roland Conybeare, Nov 2025
|
|
**/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace xo {
|
|
namespace scm {
|
|
class SchematikaError {
|
|
public:
|
|
SchematikaError() = default;
|
|
explicit SchematikaError(std::string x) : what_{std::move(x)} {}
|
|
|
|
const std::string & what() const { return what_; }
|
|
|
|
bool is_error() const { return !what_.empty(); }
|
|
bool is_not_an_error() const { return what_.empty(); }
|
|
|
|
private:
|
|
std::string what_;
|
|
};
|
|
}
|
|
}
|
|
|
|
/* end SchematikaError.hpp */
|