Brush C++ API
A flexible interpretable machine learning framework
Toggle main menu visibility
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1
/* Brush
2
copyright 2017 William La Cava
3
license: GNU/GPL v3
4
*/
5
6
#ifndef ERROR_H
7
#define ERROR_H
8
9
#include <string>
10
#include <iostream>
11
12
using namespace
std
;
13
14
//#include "node/node.h"
15
//external includes
16
17
namespace
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
Brush::Util
namespace containing various utility functions
Definition
error.cpp:11
Brush::Util::HandleErrorNoThrow
void HandleErrorNoThrow(string err, const char *file, int line)
prints error to stderr and returns
Definition
error.cpp:25
Brush::Util::HandleErrorThrow
void HandleErrorThrow(string err, const char *file, int line)
prints error and throws an exception
Definition
error.cpp:13
Brush
< nsga2 selection operator for getting the front
Definition
bandit.cpp:3
std
STL namespace.
src
util
error.h
Generated by
1.17.0