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