Loading...
Searching...
No Matches
gfanlib_exceptions.h
Go to the documentation of this file.
#ifndef GFANLIB_EXCEPTIONS_H
#define GFANLIB_EXCEPTIONS_H
#include <exception>
class weightOverflowException: public std::exception
{
virtual const char* what() const throw()
{
return "int overflow in a weight vector";
}
};
EXTERN_INST_VAR weightOverflowException weightOverflow;
class exponentOverflowException: public std::exception
{
virtual const char* what() const throw()
{
return "int overflow in an exponent";
}
};
EXTERN_INST_VAR exponentOverflowException exponentOverflow;
#endif
exponentOverflowException
Definition gfanlib_exceptions.h:17
exponentOverflowException::what
virtual const char * what() const
Definition gfanlib_exceptions.h:18
weightOverflowException
Definition gfanlib_exceptions.h:7
weightOverflowException::what
virtual const char * what() const
Definition gfanlib_exceptions.h:8
weightOverflow
EXTERN_INST_VAR weightOverflowException weightOverflow
Definition gfanlib_exceptions.h:14
exponentOverflow
EXTERN_INST_VAR exponentOverflowException exponentOverflow
Definition gfanlib_exceptions.h:24
EXTERN_INST_VAR
#define EXTERN_INST_VAR
Definition globaldefs.h:9