ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
UserError.hpp
Go to the documentation of this file.
1
12#pragma once
13
14#include <stdexcept>
15#include <string>
16
17namespace ppforest2 {
25 class UserError : public std::runtime_error {
26 public:
27 using std::runtime_error::runtime_error;
28 };
29
36 void user_error(bool condition, std::string const& message);
37
39 void user_error(bool condition, char const* message);
40}
Exception for user-facing input validation errors.
Definition UserError.hpp:25
Definition Benchmark.hpp:22
void user_error(bool condition, std::string const &message)
Throw a UserError if the condition is false.