My Project
Loading...
Searching...
No Matches
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
6class 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
16class 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
virtual const char * what() const
virtual const char * what() const
EXTERN_INST_VAR weightOverflowException weightOverflow
EXTERN_INST_VAR exponentOverflowException exponentOverflow
#define EXTERN_INST_VAR
Definition: globaldefs.h:9