Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// Created by martin on 9/17/18.
//
#ifndef LIB4NEURO_EXCEPTIONS_H
#define LIB4NEURO_EXCEPTIONS_H
#include <stdexcept>
/**
* Class representing an error caused by an incorrect
* input/output dimension specification
*/
class InvalidDimension : public std::runtime_error {
public:
/**
* Constructor with the general error message
*/
InvalidDimension();
/**
* Constructor with specific error message
* @param msg Specific error message
*/
explicit InvalidDimension(std::string msg);
};
//TODO implement NotImplementedException according to C++17
/**
*
*/
class NotImplementedException : public std::runtime_error {
public:
/**
*
*/
NotImplementedException();
/**
*
* @param msg
*/
explicit NotImplementedException(std::string msg);
};
#endif //LIB4NEURO_EXCEPTIONS_H