Cypress  1.0
C++ Spiking Neural Network Simulation Framework
exceptions.hpp
Go to the documentation of this file.
1 /*
2  * Cypress -- C++ Spiking Neural Network Simulation Framework
3  * Copyright (C) 2016 Andreas Stöckel
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
27 #pragma once
28 
29 #ifndef CYPRESS_CORE_EXCEPTIONS_HPP
30 #define CYPRESS_CORE_EXCEPTIONS_HPP
31 
32 #include <stdexcept>
33 
34 namespace cypress {
38 class CypressException : public std::runtime_error {
39 public:
40  using std::runtime_error::runtime_error;
41 };
42 
48 public:
49  using CypressException::CypressException;
50 };
51 
58 public:
59  using CypressException::CypressException;
60 };
61 
66 public:
67  using CypressException::CypressException;
68 };
69 
76 public:
77  using CypressException::CypressException;
78 };
79 
85 public:
86  using CypressException::CypressException;
87 };
88 
93 public:
94  using CypressException::CypressException;
95 };
96 
101 public:
102  using CypressException::CypressException;
103 };
104 
110 public:
111  using CypressException::CypressException;
112 };
113 
118 public:
119  using CypressException::CypressException;
120 };
121 
127 public:
130  "Trying to read a parameter from a set of neurons, yet the "
131  "underlying population is not homogeneous. Iterate over the "
132  "individual neurons instead.")
133  {
134  }
135 };
136 
141 public:
144  "Cannot retrieve data for signal which is not being recorded.")
145  {
146  }
147 };
148 
153 public:
154  using CypressException::CypressException;
155 };
156 }
157 
158 #endif /* CYPRESS_CORE_EXCEPTIONS_HPP */
Definition: exceptions.hpp:100
Definition: exceptions.hpp:65
SignalNotRecordedException()
Definition: exceptions.hpp:142
Definition: exceptions.hpp:47
Definition: exceptions.hpp:75
Definition: exceptions.hpp:117
Definition: exceptions.hpp:57
Definition: brainscales_lib.hpp:39
Definition: exceptions.hpp:92
Definition: exceptions.hpp:109
Definition: exceptions.hpp:84
Definition: exceptions.hpp:152
Definition: exceptions.hpp:38
Definition: exceptions.hpp:140
HomogeneousPopulationRequiredException()
Definition: exceptions.hpp:128