Errors.cpp 363 B

12345678910111213141516
  1. #include "Errors.h"
  2. #include "Text.h"
  3. #include <stdexcept>
  4. void Framework::throwOutOfRange(const char* file, int 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(err);
  15. }