-
Notifications
You must be signed in to change notification settings - Fork 8
/
dais_exc.h
61 lines (48 loc) · 1.77 KB
/
dais_exc.h
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
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef DAIS_EXC
#define DAIS_EXC
#include <string>
using namespace std;
/* Expections */
struct index_out_of_bound{
string msg = "Index out of bound";
string code = "001";
/* Utilizzate questa eccezione per i casi di accesso a locazioni errate dei tensori
(ad esempio indici negativi o superiori alle dimensioni del tensore) */
};
struct dimension_mismatch{
string msg = "Dimensions Mismatch";
string code = "002";
/* Utilizzate questa eccezione per i casi in cui l'operazione tra due tensori richieda
le stesse dimensioni */
};
struct unknown_operation{
string msg = "Unknown Operation";
string code = "003";
/* Utilizzate questa eccezione per i casi in cui l'operazione da eseguire non è conosciuta */
};
struct method_not_implemented{
string msg = "Method not implemented";
string code = "004";
/* Utilizzate questa eccezione se non volete implementare una certa funzione */
};
struct tensor_not_initialized{
string msg = "Tensor not initilized";
string code = "005";
/* Utilizzate questa eccezione se il tensore non è inizializzato */
};
struct concat_wrong_dimension{
string msg = "Concatenation on wrong dimension";
string code = "006";
/* Utilizzate questa eccezione se la dimensione sulla quale volete eseguire la concatenazione è errata */
};
struct unable_to_read_file{
string msg = "Unable to read file";
string code = "007";
/* Utilizzate questa eccezione se il file dal quale volete leggere un tensore non esiste */
};
struct filter_odd_dimensions{
string msg = "The (width and height) dimensions of the filter must be odd";
string code = "008";
/* Utilizzate questa eccezione se il filtro per la convoluzione NON ha dimensioni (altezza e largezza) dispari */
};
#endif