Brush C++ API
A flexible interpretable machine learning framework
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1/* Brush
2copyright 2017 William La Cava
3license: GNU/GPL v3
4*/
5
6#ifndef ERROR_H
7#define ERROR_H
8
9#include <string>
10#include <iostream>
11
12using namespace std;
13
14//#include "node/node.h"
15//external includes
16
17namespace Brush{ namespace Util {
19 void HandleErrorThrow(string err, const char *file, int line );
20
22 void HandleErrorNoThrow(string err, const char *file, int line );
23
24 // TODO: have more errors
25}}
26
27#define HANDLE_ERROR_THROW( err ) (Util::HandleErrorThrow( err, __FILE__, __LINE__ ))
28#define HANDLE_WARNING( err ) (Util::HandleErrorNoThrow( err, __FILE__, __LINE__ ))
29#endif
void bind_engine(py::module &m, string name)
void HandleErrorNoThrow(string err, const char *file, int line)
prints error to stderr and returns
Definition error.cpp:25
void HandleErrorThrow(string err, const char *file, int line)
prints error and throws an exception
Definition error.cpp:13
< nsga2 selection operator for getting the front
Definition data.cpp:12
STL namespace.