File indexing completed on 2024-04-14 04:02:38

0001 /*
0002     SPDX-FileCopyrightText: 2015 Jakob Gruber <jakob.gruber@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef OUTOFBOUNDSEXCEPTION_H
0008 #define OUTOFBOUNDSEXCEPTION_H
0009 
0010 #include <exception>
0011 
0012 class OutOfBoundsException : public std::exception
0013 {
0014 public:
0015     const char *what() const throw() override {
0016         return "index out of bounds";
0017     }
0018 };
0019 
0020 #endif // OUTOFBOUNDSEXCEPTION_H