40 #ifndef _VECTOREXCEPTIONS_H_ 41 #define _VECTOREXCEPTIONS_H_ 43 #include "../Exceptions.h" 44 #include "../Text/TextTools.h" 72 Exception::operator=(ve);
110 Exception(
"DimensionException (found " +
TextTools::toString(dimension) +
", should be " +
TextTools::toString(correctDimension) +
") " + text),
154 #endif //_VECTOREXCEPTIONS_H_ virtual size_t getDimension() const
ElementNotFoundException(const ElementNotFoundException &enfe)
EmptyVectorException(const std::string &text, const std::vector< T > *vect=0)
This class allows to perform a correspondence analysis.
VectorException(const VectorException &ve)
virtual ~EmptyVectorException()
virtual ~DimensionException()
Exception thrown when a given element was not found in the vector.
virtual const T * getElement() const
const std::vector< T > * vect_
VectorException(const std::string &text, const std::vector< T > *vect=0)
ElementNotFoundException & operator=(const ElementNotFoundException &enfe)
Exception thrown when an empty vector was found.
ElementNotFoundException(const std::string &text, const std::vector< T > *vect=0, const T *element=0)
General Exception dealing with vectors.
virtual size_t getCorrectDimension() const
virtual ~VectorException()
virtual const std::vector< T > * getVector() const
virtual ~ElementNotFoundException()
DimensionException(const std::string &text, size_t dimension, size_t correctDimension)
Some utilitary functions that work on strings.
Exception thrown when a dimension problem occured.
VectorException & operator=(const VectorException &ve)