| 6904 | |
| 6905 | protected: |
| 6906 | void enforceOk() const override { |
| 6907 | |
| 6908 | // Errors shouldn't reach this point, but if they do |
| 6909 | // the actual error message will be in m_errorMessage |
| 6910 | assert( m_type != ResultBase::LogicError ); |
| 6911 | assert( m_type != ResultBase::RuntimeError ); |
| 6912 | if( m_type != ResultBase::Ok ) |
| 6913 | std::abort(); |
| 6914 | } |
| 6915 | |
| 6916 | std::string m_errorMessage; // Only populated if resultType is an error |
| 6917 |
nothing calls this directly
no outgoing calls
no test coverage detected