20 #ifndef NNFWEXCEPTIONS_H
21 #define NNFWEXCEPTIONS_H
31 #include "baseexception.h"
37 #pragma warning(disable:4996)
83 BaseException::operator=(other);
100 virtual const char *what()
const throw()
102 return "It is not allowed to use the operator=() on DoubleVector used as internal data";
144 if (&other ==
this) {
148 BaseException::operator=(other);
165 virtual const char *what()
const throw()
167 return "It is not allowed to resize a DoubleVector used as internal data";
194 strncpy(m_description, description, 256);
195 m_description[255] =
'\0';
206 strncpy(m_description, other.m_description, 256);
207 m_description[255] =
'\0';
217 if (&other ==
this) {
221 BaseException::operator=(other);
222 strncpy(m_description, other.m_description, 256);
223 m_description[255] =
'\0';
240 virtual const char *what()
const throw()
242 return m_description;
250 const char *description()
const throw()
252 return m_description;
265 char m_description[256];
285 strncpy(m_description, description, 256);
286 m_description[255] =
'\0';
297 strncpy(m_description, other.m_description, 256);
298 m_description[255] =
'\0';
308 if (&other ==
this) {
312 BaseException::operator=(other);
313 strncpy(m_description, other.m_description, 256);
314 m_description[255] =
'\0';
331 virtual const char *what()
const throw()
333 return m_description;
341 const char *description()
const throw()
343 return m_description;
356 char m_description[256];
391 if (&other ==
this) {
395 BaseException::operator=(other);
412 virtual const char *what()
const throw()
414 return "The Cluster 'from' or 'to' is missing - Check your configuration file";
456 if (&other ==
this) {
460 BaseException::operator=(other);
477 virtual const char *what()
const throw()
479 return "It is not allowed to use the operator=() on DoubleMatrix used as internal data";
521 if (&other ==
this) {
525 BaseException::operator=(other);
542 virtual const char *what()
const throw()
544 return "It is not allowed to resize a DoubleMatrix used as internal data";
571 strncpy(m_description, description, 256);
572 m_description[255] =
'\0';
583 strncpy(m_description, other.m_description, 256);
584 m_description[255] =
'\0';
594 if (&other ==
this) {
598 BaseException::operator=(other);
599 strncpy(m_description, other.m_description, 256);
600 m_description[255] =
'\0';
617 virtual const char *what()
const throw()
619 return m_description;
627 const char *description()
const throw()
629 return m_description;
642 char m_description[256];
662 strncpy(m_description, description, 256);
663 m_description[255] =
'\0';
674 strncpy(m_description, other.m_description, 256);
675 m_description[255] =
'\0';
685 if (&other ==
this) {
689 BaseException::operator=(other);
690 strncpy(m_description, other.m_description, 256);
691 m_description[255] =
'\0';
708 virtual const char *what()
const throw()
710 return m_description;
718 const char *description()
const throw()
720 return m_description;
733 char m_description[256];
768 if (&other ==
this) {
772 BaseException::operator=(other);
789 virtual const char *what()
const throw()
791 return "setCluster called on an OutputFunction already configured to be part of another Cluster!";
818 strncpy(m_description, description, 256);
819 m_description[255] =
'\0';
830 strncpy(m_description, other.m_description, 256);
831 m_description[255] =
'\0';
841 if (&other ==
this) {
845 BaseException::operator=(other);
846 strncpy(m_description, other.m_description, 256);
847 m_description[255] =
'\0';
864 virtual const char *what()
const throw()
866 return m_description;
874 const char *description()
const throw()
876 return m_description;
889 char m_description[256];