Errors.cpp 397 B

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