My Project  debian-1:4.1.1-p2+ds-4build1
gfanlib_exceptions.h
Go to the documentation of this file.
1 #ifndef GFANLIB_EXCEPTIONS_H
2 #define GFANLIB_EXCEPTIONS_H
3 
4 #include <exception>
5 
6 class weightOverflowException: public std::exception
7 {
8  virtual const char* what() const throw()
9  {
10  return "int overflow in a weight vector";
11  }
12 };
13 
15 
16 class exponentOverflowException: public std::exception
17 {
18  virtual const char* what() const throw()
19  {
20  return "int overflow in an exponent";
21  }
22 };
23 
25 
26 #endif
weightOverflowException
Definition: gfanlib_exceptions.h:6
weightOverflowException::what
virtual const char * what() const
Definition: gfanlib_exceptions.h:8
exponentOverflowException
Definition: gfanlib_exceptions.h:16
weightOverflow
weightOverflowException weightOverflow
exponentOverflowException::what
virtual const char * what() const
Definition: gfanlib_exceptions.h:18
exponentOverflow
exponentOverflowException exponentOverflow