Newer
Older
libj / include / j / lang / index_out_of_bounds_exception.hpp
Nomura Kei on 9 Jun 2024 1 KB first commit
  1. /**
  2. * @file index_out_of_bounds_exception.hpp
  3. * @brief J Library IndexOutOfBoundsException ヘッダファイル。
  4. * @copyright 2001 - 2024 Nomura Kei
  5. * @depends
  6. * j/lang/throwable.hpp
  7. */
  8. #ifndef J_LANG_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP
  9. #define J_LANG_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP
  10.  
  11. #include <j/lang/runtime_exception.hpp>
  12.  
  13. namespace j
  14. {
  15. namespace lang
  16. {
  17.  
  18. class IndexOutOfBoundsException : public RuntimeException
  19. {
  20. public:
  21. // デフォルトコンストラクタ
  22. IndexOutOfBoundsException() noexcept;
  23.  
  24. // コンストラクタ
  25. IndexOutOfBoundsException(const String &msg) noexcept;
  26.  
  27. // コピーコンストラクタ
  28. IndexOutOfBoundsException(const IndexOutOfBoundsException &t) noexcept;
  29.  
  30. // ムーブコンストラクタ
  31. IndexOutOfBoundsException(IndexOutOfBoundsException &&t) noexcept;
  32.  
  33. // デストラクタ
  34. ~IndexOutOfBoundsException() noexcept;
  35. };
  36.  
  37. } // namespace lang
  38. } // namespace j
  39.  
  40. #endif // J_LANG_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP