| 128 | } |
| 129 | |
| 130 | OutOfMemory::OutOfMemory(const char* file, int line, const char* function, Size size) noexcept : |
| 131 | BaseException(file, line, function, "OutOfMemory", "unable to allocate enough memory (size = " + String(size) + " bytes) ") |
| 132 | { |
| 133 | GlobalExceptionHandler::getInstance().setMessage(static_cast<std::runtime_error>(*this).what()); |
| 134 | } |
| 135 | |
| 136 | SizeUnderflow::SizeUnderflow(const char* file, int line, const char* function, Size size) noexcept : |
| 137 | BaseException(file, line, function, "SizeUnderflow", "the given size was too small: " + String(size)) |
nothing calls this directly
no test coverage detected