xo-umbrella2/xo-interpreter/include/xo/interpreter/SchematikaError.hpp
Roland Conybeare 9eaae04fdf git subrepo clone git@github.com:Rconybea/xo-interpreter.git xo-interpreter
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:   "???"
2026-06-06 22:12:50 -04:00

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 */