MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / logicError

Method logicError

unittests/catch.hpp:5787–5787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5785 static auto ok( U const &value ) -> BasicResult { return { ResultBase::Ok, value }; }
5786 static auto ok() -> BasicResult { return { ResultBase::Ok }; }
5787 static auto logicError( std::string const &message ) -> BasicResult { return { ResultBase::LogicError, message }; }
5788 static auto runtimeError( std::string const &message ) -> BasicResult { return { ResultBase::RuntimeError, message }; }
5789
5790 explicit operator bool() const { return m_type == ResultBase::Ok; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected