Errors.cpp 418 B

12345678910111213141516
  1. #include "Errors.h"
  2. #include "Text.h"
  3. #include <stdexcept>
  4. void Framework::throwOutOfRange( const char *file, const char *line, int index, int count )
  5. {
  6. Framework::Text err = "Index out of Range Exception File: ";
  7. err += __FILE__;
  8. err += " Line: ";
  9. err += __LINE__;
  10. err += " Index: ";
  11. err += index;
  12. err += " Element count: ";
  13. err += count;
  14. throw std::out_of_range( (char *)err );
  15. }