NEST  2.6.0,not_revisioned_source_dir@0
exceptions.h
Go to the documentation of this file.
1 /*
2  * exceptions.h
3  *
4  * This file is part of NEST.
5  *
6  * Copyright (C) 2004 The NEST Initiative
7  *
8  * NEST is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NEST is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef EXCEPTIONS_H
24 #define EXCEPTIONS_H
25 
26 #include "sliexceptions.h"
27 #include "nest_time.h"
28 #include "name.h"
29 
30 class SLIInterpreter;
31 
32 namespace nest {
33 
34  class Event;
35 
55  {
56  public:
58  : SLIException("KernelException") {}
59 
60  KernelException(char const * const what)
61  : SLIException(what) {}
62 
63  virtual ~KernelException() throw() {}
64 
65  virtual std::string message(){ return std::string(); }
66  };
67 
75  {
76  const Name n_;
77  public:
79  : KernelException("UnknownModelName"),
80  n_(n) {}
81 
82  ~UnknownModelName() throw () {}
83  std::string message();
84  };
85 
92  {
93  const Name n_;
94  public:
96  : KernelException("NewModelNameExists"),
97  n_(n) {}
98  ~NewModelNameExists() throw () {}
99  std::string message();
100  };
101 
110  {
111  const long id_;
112  public:
113  UnknownModelID(long id)
114  : KernelException("UnknownModelID"),
115  id_(id) {}
116  ~UnknownModelID() throw () {}
117  std::string message();
118  };
119 
128  {
129  const std::string modelname_;
130  public:
131  ModelInUse(const std::string &modelname)
132  : KernelException("ModelInUse"),
133  modelname_(modelname) {}
134 
135  ~ModelInUse() throw () {}
136  std::string message();
137  };
138 
145  {
147  std::string synapsename_;
148  public:
150  : KernelException("UnknownSynapseType"),
151  synapseid_(id),
152  synapsename_()
153  {}
154 
155  UnknownSynapseType(std::string name)
156  : KernelException("UnknownSynapseType"),
157  synapseid_(),
158  synapsename_(name)
159  {}
160 
161  ~UnknownSynapseType() throw () {}
162 
163  std::string message();
164  };
165 
176  {
177  int id_;
178  public:
180  : KernelException("UnknownNode"),
181  id_(-1)
182  {}
183  UnknownNode(int id)
184  : KernelException("UnknownNode"),
185  id_(id)
186  {}
187 
188  ~UnknownNode() throw () {}
189 
190  std::string message();
191  };
192 
203  {
204  int id_;
205  public:
207  : KernelException("UnknownNode"),
208  id_(-1)
209  {}
211  : KernelException("UnknownNode"),
212  id_(id)
213  {}
214 
216 
217  std::string message();
218  };
219 
220 
222  {
223  int id_;
224  public:
226  : KernelException("LocalNodeExpected"),
227  id_(id)
228  {}
229 
230  ~LocalNodeExpected() throw () {}
231 
232  std::string message();
233  };
234 
236  {
237  int id_;
238  public:
240  : KernelException("NodeWithProxiesExpected"),
241  id_(id)
242  {}
243 
245 
246  std::string message();
247  };
248 
255  {
257  std::string name_;
258  public:
259  UnknownReceptorType(long receptor_type, std::string name)
260  : KernelException("UnknownReceptorType"),
261  receptor_type_(receptor_type),
262  name_(name) {}
263 
264  ~UnknownReceptorType() throw () {}
265  std::string message();
266  };
267 
274  {
276  std::string name_;
277  std::string event_type_;
278  public:
279  IncompatibleReceptorType(long receptor_type, std::string name,
280  std::string event)
281  : KernelException("IncompatibleReceptorType"),
282  receptor_type_(receptor_type),
283  name_(name),
284  event_type_(event)
285  {}
286 
288  std::string message();
289  };
290 
298  {
299  int id_;
300  public:
301  UnknownPort(int id)
302  : KernelException("UnknownPort"),
303  id_(id)
304  {}
305 
306  ~UnknownPort() throw () {}
307 
308  std::string message();
309  };
310 
318  {
319  public:
321  : KernelException("IllegalConnection"),
322  msg_()
323  {}
324 
325  IllegalConnection(std::string msg)
326  : KernelException("IllegalConnection"),
327  msg_(msg)
328  {}
329 
330  ~IllegalConnection() throw () {}
331 
332  std::string message();
333 
334  private:
335  std::string msg_;
336  };
337 
343  {
344  int id_;
345  public:
347  : KernelException("UnknownThread"),
348  id_(id)
349  {}
350 
351  ~UnknownThread() throw () {}
352 
353  std::string message();
354  };
355 
361  class BadDelay: public KernelException
362  {
363  double delay_;
364  std::string message_;
365 
366  public:
367  BadDelay(double delay,
368  std::string message)
369  : KernelException("BadDelay"),
370  delay_(delay),
371  message_(message)
372  {}
373 
374  ~BadDelay() throw () {}
375 
376  std::string message();
377  };
378 
386  {
387  public:
389  : KernelException("UnexpectedEvent")
390  {}
391 
392  ~UnexpectedEvent() throw () {}
393 
394  std::string message();
395  };
396 
404  {
405  public:
407  : KernelException("UnsupportedEvent")
408  {}
409 
410  ~UnsupportedEvent() throw () {}
411  std::string message();
412  };
413 
421  {
422  std::string msg_;
423  public:
426  : KernelException("BadProperty"),
427  msg_()
428  {}
429  BadProperty(std::string msg)
430  : KernelException("BadProperty"),
431  msg_(msg)
432  {}
433 
434  ~BadProperty() throw () {}
435 
436  std::string message();
437  };
438 
446  {
447  std::string msg_;
448  public:
451  : KernelException("BadParameter"),
452  msg_()
453  {}
454  BadParameter(std::string msg)
455  : KernelException("BadParameter"),
456  msg_(msg)
457  {}
458 
459  ~BadParameter() throw () {}
460 
461  std::string message();
462  };
463 
471  {
474  public:
476  : KernelException("DimensionMismatch"),
477  expected_(),
478  provided_()
479  {}
480 
481  DimensionMismatch(int expected, int provided)
482  : KernelException("DimensionMismatch"),
483  expected_(expected),
484  provided_(provided)
485  {}
486 
487  ~DimensionMismatch() throw () {}
488 
489  std::string message();
490  };
491 
498  {
499  public:
501  : KernelException("DistributionError") {}
502  ~DistributionError() throw () {}
503 
504  std::string message();
505  };
506 
513  {
514  public:
516  : KernelException("SubnetExpected") {}
517  ~SubnetExpected() throw () {}
518 
519  std::string message();
520  };
521 
528  {
529  public:
531  : KernelException("SimulationError") {}
532  ~SimulationError() throw () {}
533 
534  std::string message();
535  };
536 
545  {
546  public:
554  InvalidDefaultResolution(const std::string& model,
555  const Name& property, const Time& value)
556  : KernelException("InvalidDefaultResolution"),
557  model_(model), prop_(property), val_(value)
558  {}
560 
561  std::string message();
562 
563  private:
564  const std::string model_;
565  const Name prop_;
566  const Time val_;
567  };
568 
577  {
578  public:
586  InvalidTimeInModel(const std::string& model,
587  const Name& property, const Time& value)
588  : KernelException("InvalidTimeInModel"),
589  model_(model), prop_(property), val_(value)
590  {}
591  ~InvalidTimeInModel() throw() {}
592 
593  std::string message();
594 
595  private:
596  const std::string model_;
597  const Name prop_;
598  const Time val_;
599  };
600 
607  {
608  public:
616  StepMultipleRequired(const std::string& model,
617  const Name& property, const Time& value)
618  : KernelException("StepMultipleRequired"),
619  model_(model), prop_(property), val_(value)
620  {}
622 
623  std::string message();
624 
625  private:
626  const std::string model_;
627  const Name prop_;
628  const Time val_;
629  };
630 
637  {
638  public:
648  TimeMultipleRequired(const std::string& model,
649  const Name& name_a, const Time& value_a,
650  const Name& name_b, const Time& value_b)
651  : KernelException("StepMultipleRequired"),
652  model_(model), prop_a_(name_a), val_a_(value_a),
653  prop_b_(name_b), val_b_(value_b)
654  {}
656 
657  std::string message();
658 
659  private:
660  const std::string model_;
661  const Name prop_a_;
662  const Time val_a_;
663  const Name prop_b_;
664  const Time val_b_;
665  };
666 
672  {
673  public:
680  GSLSolverFailure(const std::string& model,
681  const int status)
682  : KernelException("GSLSolverFailure"),
683  model_(model),
684  status_(status)
685  {}
686  ~GSLSolverFailure() throw() {}
687 
688  std::string message();
689 
690  private:
691  const std::string model_;
692  const int status_;
693  };
694 
700  {
701  public:
707  NumericalInstability(const std::string& model)
708  : KernelException("GSLSolverFailure"),
709  model_(model)
710  {}
712 
713  std::string message();
714 
715  private:
716  const std::string model_;
717  };
718 
719 #ifdef HAVE_MUSIC
720 
725  {
726  public:
733  MUSICPortUnconnected(const std::string& model, const std::string& portname)
734  : KernelException("MUSICPortUnconnected"),
735  model_(model),
736  portname_(portname)
737  {}
739 
740  std::string message();
741 
742  private:
743  const std::string model_;
744  const std::string portname_;
745  };
746 
752  {
753  public:
760  MUSICPortHasNoWidth(const std::string& model, const std::string& portname)
761  : KernelException("MUSICPortHasNoWidth"),
762  model_(model),
763  portname_(portname)
764  {}
765  ~MUSICPortHasNoWidth() throw() {}
766 
767  std::string message();
768 
769  private:
770  const std::string model_;
771  const std::string portname_;
772  };
773 
774 
780  {
781  public:
787  MUSICPortAlreadyPublished(const std::string& model, const std::string& portname)
788  : KernelException("MUSICPortAlreadyPublished"),
789  model_(model),
790  portname_(portname)
791  {}
793 
794  std::string message();
795 
796  private:
797  const std::string model_;
798  const std::string portname_;
799  };
800 
806  {
807  public:
813  MUSICSimulationHasRun(const std::string& model)
814  : KernelException("MUSICSimulationHasRun"),
815  model_(model)
816  {}
818 
819  std::string message();
820 
821  private:
822  const std::string model_;
823  };
824 
825 
831  {
832  public:
838  MUSICChannelUnknown(const std::string& model, const std::string& portname, int channel)
839  : KernelException("MUSICChannelUnknown"),
840  portname_(portname),
841  channel_(channel),
842  model_(model)
843  {}
844  ~MUSICChannelUnknown() throw() {}
845 
846  std::string message();
847 
848  private:
849  const std::string portname_;
850  const int channel_;
851  const std::string model_;
852  };
853 
859  {
860  public:
861  MUSICPortUnknown(const std::string& portname)
862  : KernelException("MUSICPortUnknown"),
863  portname_(portname)
864  {}
865  ~MUSICPortUnknown() throw() {}
866 
867  std::string message();
868 
869  private:
870  const std::string portname_;
871  };
872 
878  {
879  public:
885  MUSICChannelAlreadyMapped(const std::string& model, const std::string& portname, int channel)
886  : KernelException("MUSICChannelAlreadyMapped"),
887  portname_(portname),
888  channel_(channel),
889  model_(model)
890  {}
892 
893  std::string message();
894 
895  private:
896  const std::string portname_;
897  const int channel_;
898  const std::string model_;
899  };
900 #endif
901 }
902 #endif
std::string msg_
Definition: exceptions.h:422
Exception to be thrown if a GSL solver does not return GSL_SUCCESS.
Definition: exceptions.h:671
UnknownThread(int id)
Definition: exceptions.h:346
Exception to be thrown if the user tries to map a channel that exceeds the width of the MUSIC port...
Definition: exceptions.h:830
~DimensionMismatch()
Definition: exceptions.h:487
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:307
UnknownPort(int id)
Definition: exceptions.h:301
int id_
Definition: exceptions.h:237
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:217
const std::string model_
Definition: exceptions.h:564
Exception to be thrown if the wrong argument type is given to a function.
Definition: exceptions.h:512
const Name prop_
Definition: exceptions.h:627
InvalidDefaultResolution(const std::string &model, const Name &property, const Time &value)
Definition: exceptions.h:554
IllegalConnection(std::string msg)
Definition: exceptions.h:325
const Name receptor_type("receptor_type")
Connection parameters.
Definition: nest_names.h:240
virtual const char * what() const
Returns the SLI error name, used by raiseerror.
Definition: sliexceptions.h:83
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:127
~MUSICSimulationHasRun()
Definition: exceptions.h:817
Exception to be thrown by the event handler of a node if it receives an event it cannot handle...
Definition: exceptions.h:385
const std::string model_
Definition: exceptions.h:822
MUSICPortAlreadyPublished(const std::string &model, const std::string &portname)
Definition: exceptions.h:787
Exception to be thrown if the specified receptor type does not accept the event type.
Definition: exceptions.h:273
DimensionMismatch()
Definition: exceptions.h:475
const std::string model_
Definition: exceptions.h:898
TimeMultipleRequired(const std::string &model, const Name &name_a, const Time &value_a, const Name &name_b, const Time &value_b)
Definition: exceptions.h:648
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:28
~BadParameter()
Definition: exceptions.h:459
const std::string model_
Definition: exceptions.h:716
To be thrown if a connection is not possible.
Definition: exceptions.h:317
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:192
DistributionError()
Definition: exceptions.h:500
Exception to be thrown if a (neuron/synapse) model with the the specified ID is used within the netwo...
Definition: exceptions.h:127
UnexpectedEvent()
Definition: exceptions.h:388
ModelInUse(const std::string &modelname)
Definition: exceptions.h:131
BadDelay(double delay, std::string message)
Definition: exceptions.h:367
Exception to be thrown if a Time object should be multiple of the resolution.
Definition: exceptions.h:606
const long id_
Definition: exceptions.h:111
~NumericalInstability()
Definition: exceptions.h:711
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:58
int provided_
Definition: exceptions.h:473
BadParameter(std::string msg)
Definition: exceptions.h:454
const Name prop_
Definition: exceptions.h:597
~DistributionError()
Definition: exceptions.h:502
std::string name_
Definition: exceptions.h:257
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:279
const std::string portname_
Definition: exceptions.h:771
~IllegalConnection()
Definition: exceptions.h:330
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:250
const Time val_a_
Definition: exceptions.h:662
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:222
double delay_
Definition: exceptions.h:363
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:42
~MUSICChannelUnknown()
Definition: exceptions.h:844
~TimeMultipleRequired()
Definition: exceptions.h:655
MUSICSimulationHasRun(const std::string &model)
Definition: exceptions.h:813
int expected_
Definition: exceptions.h:472
Represent strings by ints to facilitate fast comparison.
Definition: name.h:53
MUSICChannelAlreadyMapped(const std::string &model, const std::string &portname, int channel)
Definition: exceptions.h:885
const std::string portname_
Definition: exceptions.h:798
~MUSICChannelAlreadyMapped()
Definition: exceptions.h:891
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:78
int id_
Definition: exceptions.h:344
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:260
~UnexpectedEvent()
Definition: exceptions.h:392
UnsupportedEvent()
Definition: exceptions.h:406
const Name n_
Definition: exceptions.h:93
NumericalInstability(const std::string &model)
Definition: exceptions.h:707
~MUSICPortAlreadyPublished()
Definition: exceptions.h:792
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:300
const Name prop_b_
Definition: exceptions.h:663
UnknownModelID(long id)
Definition: exceptions.h:113
~NewModelNameExists()
Definition: exceptions.h:98
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:168
~SimulationError()
Definition: exceptions.h:532
~BadProperty()
Definition: exceptions.h:434
int id_
Definition: exceptions.h:223
~UnknownModelID()
Definition: exceptions.h:116
DimensionMismatch(int expected, int provided)
Definition: exceptions.h:481
~UnknownThread()
Definition: exceptions.h:351
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:176
UnknownSynapseType(std::string name)
Definition: exceptions.h:155
const std::string portname_
Definition: exceptions.h:744
const std::string model_
Definition: exceptions.h:797
IncompatibleReceptorType(long receptor_type, std::string name, std::string event)
Definition: exceptions.h:279
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:118
long receptor_type_
Definition: exceptions.h:256
const Time val_
Definition: exceptions.h:628
SimulationError()
Definition: exceptions.h:530
~UnknownPort()
Definition: exceptions.h:306
Exception to be thrown if the dimensions of two or more objects do not agree.
Definition: exceptions.h:470
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:315
~UnknownNode()
Definition: exceptions.h:188
Definition: exceptions.h:221
~MUSICPortUnknown()
Definition: exceptions.h:865
Exception to be thrown if a parameter cannot be set.
Definition: exceptions.h:445
const std::string portname_
Definition: exceptions.h:870
UnknownNode()
Definition: exceptions.h:179
UnknownModelName(const Name &n)
Definition: exceptions.h:78
Exception to be thrown if a thread id outside the range encountered.
Definition: exceptions.h:342
Definition: nest_time.h:130
~ModelInUse()
Definition: exceptions.h:135
Exception to be thrown if a model with the the specified ID does not exist.
Definition: exceptions.h:109
NewModelNameExists(const Name &n)
Definition: exceptions.h:95
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:136
~UnknownModelName()
Definition: exceptions.h:82
~UnknownReceptorType()
Definition: exceptions.h:264
Base class for all Kernel exceptions.
Definition: exceptions.h:54
MUSICChannelUnknown(const std::string &model, const std::string &portname, int channel)
Definition: exceptions.h:838
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:187
Exception to be thrown if a model with the the specified name does not exist.
Definition: exceptions.h:74
MUSICPortHasNoWidth(const std::string &model, const std::string &portname)
Definition: exceptions.h:760
Exception to be thrown if a problem with the distribution of elements is encountered.
Definition: exceptions.h:497
Exception to be thrown if a music_event_out_proxy is generated, but the music port has no width...
Definition: exceptions.h:751
SubnetExpected()
Definition: exceptions.h:515
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:227
int synapseid_
Definition: exceptions.h:146
std::string message_
Definition: exceptions.h:364
MUSICPortUnknown(const std::string &portname)
Definition: exceptions.h:861
Exception to be thrown by a Connection object if a connection with an unsupported event type is attem...
Definition: exceptions.h:403
const int channel_
Definition: exceptions.h:850
Exception to be thrown if the specified receptor type does not exist in the node. ...
Definition: exceptions.h:254
NoThreadSiblingsAvailable(int id)
Definition: exceptions.h:210
Exception to be thrown if the specified Node does not exist.
Definition: exceptions.h:202
Exception to be thrown if the user tries to use a port that is not known to NEST. ...
Definition: exceptions.h:858
~StepMultipleRequired()
Definition: exceptions.h:621
Exception to be thrown if a music_event_out_proxy is generated, but the music port is unmapped...
Definition: exceptions.h:724
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:152
const std::string model_
Definition: exceptions.h:626
Definition: interpret.h:69
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:197
const std::string model_
Definition: exceptions.h:691
virtual std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.h:65
const Time val_
Definition: exceptions.h:566
virtual ~KernelException()
Definition: exceptions.h:63
UnknownReceptorType(long receptor_type, std::string name)
Definition: exceptions.h:259
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:272
~UnsupportedEvent()
Definition: exceptions.h:410
~InvalidTimeInModel()
Definition: exceptions.h:591
~UnknownSynapseType()
Definition: exceptions.h:161
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:111
UnknownNode(int id)
Definition: exceptions.h:183
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:335
Exception to be thrown if a status parameter is incomplete or inconsistent.
Definition: exceptions.h:420
const std::string model_
Definition: exceptions.h:851
int id_
Definition: exceptions.h:177
const std::string portname_
Definition: exceptions.h:849
const Name model("model")
Node parameter.
Definition: nest_names.h:196
Definition: exceptions.h:235
~IncompatibleReceptorType()
Definition: exceptions.h:287
std::string msg_
Definition: exceptions.h:335
NoThreadSiblingsAvailable()
Definition: exceptions.h:206
GSLSolverFailure(const std::string &model, const int status)
Definition: exceptions.h:680
KernelException()
Definition: exceptions.h:57
LocalNodeExpected(int id)
Definition: exceptions.h:225
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:50
int id_
Definition: exceptions.h:299
const std::string portname_
Definition: exceptions.h:896
KernelException(char const *const what)
Definition: exceptions.h:60
Exception to be thrown if the user tries to map a channel that exceeds the width of the MUSIC port...
Definition: exceptions.h:877
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:145
std::string name_
Definition: exceptions.h:276
int id_
Definition: exceptions.h:204
Exception to be thrown if the user tries to change the name of an already published port...
Definition: exceptions.h:779
std::string msg_
Definition: exceptions.h:447
~GSLSolverFailure()
Definition: exceptions.h:686
~NodeWithProxiesExpected()
Definition: exceptions.h:244
IllegalConnection()
Definition: exceptions.h:320
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:212
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:161
Base class for all SLI exceptions.
Definition: sliexceptions.h:56
const Name prop_a_
Definition: exceptions.h:661
MUSICPortUnconnected(const std::string &model, const std::string &portname)
Definition: exceptions.h:733
To be thrown if a port does not exists.
Definition: exceptions.h:297
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:94
const Name n("n")
Number of synaptic release sites (int >=0) (Tsodyks2_connection)
Definition: nest_names.h:202
long_t delay
Delay of a connection.
Definition: nest.h:178
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:181
const Name prop_
Definition: exceptions.h:565
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:286
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:293
UnknownSynapseType(int id)
Definition: exceptions.h:149
const std::string modelname_
Definition: exceptions.h:129
StepMultipleRequired(const std::string &model, const Name &property, const Time &value)
Definition: exceptions.h:616
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:64
BadProperty(std::string msg)
Definition: exceptions.h:429
~BadDelay()
Definition: exceptions.h:374
Exception to be thrown if a name requested for a user-defined model exist already.
Definition: exceptions.h:91
const Time val_b_
Definition: exceptions.h:664
~MUSICPortHasNoWidth()
Definition: exceptions.h:765
~SubnetExpected()
Definition: exceptions.h:517
const std::string model_
Definition: exceptions.h:743
~NoThreadSiblingsAvailable()
Definition: exceptions.h:215
const std::string model_
Definition: exceptions.h:660
long receptor_type_
Definition: exceptions.h:275
const int channel_
Definition: exceptions.h:897
BadParameter()
Definition: exceptions.h:450
~LocalNodeExpected()
Definition: exceptions.h:230
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:323
NodeWithProxiesExpected(int id)
Definition: exceptions.h:239
Exception to be thrown if the wrong argument type is given to a function.
Definition: exceptions.h:527
InvalidTimeInModel(const std::string &model, const Name &property, const Time &value)
Definition: exceptions.h:586
Exception to be thrown on prototype construction if Time objects incompatible.
Definition: exceptions.h:544
const Time val_
Definition: exceptions.h:598
~InvalidDefaultResolution()
Definition: exceptions.h:559
std::string event_type_
Definition: exceptions.h:277
Exception to be thrown on instance construction if Time objects incompatible.
Definition: exceptions.h:576
const int status_
Definition: exceptions.h:692
std::string synapsename_
Definition: exceptions.h:147
Exception to be thrown if the specified Node does not exist.
Definition: exceptions.h:175
Exception to be thrown if numerical instabilities are detected.
Definition: exceptions.h:699
const std::string model_
Definition: exceptions.h:596
const std::string model_
Definition: exceptions.h:770
Exception to be thrown if a Time object should be a multiple of another.
Definition: exceptions.h:636
const Name n_
Definition: exceptions.h:76
~MUSICPortUnconnected()
Definition: exceptions.h:738
Exception to be thrown if the user tries to change the name of an already published port...
Definition: exceptions.h:805
BadProperty()
Definition: exceptions.h:425
Exception to be thrown if the specified Synapse type does not exist.
Definition: exceptions.h:144
std::string message()
Returns a diagnostic message or empty string.
Definition: exceptions.cpp:239
Exception to be thrown if an invalid delay is used in a connection.
Definition: exceptions.h:361