42 #ifndef _EXCEPTIONS_H_ 43 #define _EXCEPTIONS_H_ 349 BadSizeException(
const std::string& text,
size_t badSize,
size_t correctSize);
379 OutOfRangeException(
const std::string& text,
double badValue,
double lowerBound,
double upperBound);
419 #endif // _EXCEPTIONS_H_
size_t getBadSize() const
virtual ~NotImplementedException()
Number exception: doubles.
The base class exception for zero division error.
The base class exception for IO error.
virtual ~ZeroDivisionException()
OutOfRangeException(const std::string &text, double badValue, double lowerBound, double upperBound)
Build a new OutOfRangeException.
This class allows to perform a correspondence analysis.
Number exception: integers.
Exception(const std::string &text)
Build a new Exception.
double getUpperBound() const
ZeroDivisionException(const char *text)
Build a new ZeroDivisionException.
Exception(const char *text)
Build a new Exception.
double getLowerBound() const
int getBadInteger() const
Get the integer that threw this exception.
ZeroDivisionException(const std::string &text)
Build a new ZeroDivisionException.
virtual ~OutOfRangeException()
std::vector< size_t > getBounds() const
Get the bounds.
Wrong size exception class.
IndexOutOfBoundsException(const std::string &text, size_t badInt, size_t lowerBound, size_t upperBound)
Build a new IndexOutOfBoundsException.
IOException(const char *text)
Build a new IOException.
virtual ~BadSizeException()
double getBadNumber() const
Get the number that threw this exception.
This expeption is sent when a given method is not implemented.
virtual ~BadNumberException()
BadSizeException(const std::string &text, size_t badSize, size_t correctSize)
Build a new BadSizeException.
size_t getCorrectSize() const
virtual ~IndexOutOfBoundsException()
const char * what() const
Method to get the message of the exception (STL method redefinition).
The base class exception for NULL pointer error.
virtual ~BadIntegerException()
BadIntegerException(const char *text, int badInt)
Build a new BadIntegerException.
NullPointerException(const std::string &text)
Build a new NullPointerException.
Out of range exception class.
IOException(const std::string &text)
Build a new IOException.
NullPointerException(const char *text)
Build a new NullPointerException.
NotImplementedException(const std::string &text)
Build a new NotImplementedException.
size_t getBadIndex() const
BadNumberException(const char *text, double badNumber)
Build a new BadNumberException.
Index out of bounds exception class.
virtual ~NullPointerException()