Newer
Older
libj / include / j / lang / index_out_of_bounds_exception.hpp
/**
 * @file index_out_of_bounds_exception.hpp
 * @brief J Library IndexOutOfBoundsException ヘッダファイル。
 * @copyright  2001 - 2024  Nomura Kei
 * @depends
 *   j/lang/throwable.hpp
 */
#ifndef J_LANG_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP
#define J_LANG_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP

#include <j/lang/runtime_exception.hpp>

namespace j
{
    namespace lang
    {

        class IndexOutOfBoundsException : public RuntimeException
        {
        public:
            // デフォルトコンストラクタ
            IndexOutOfBoundsException() noexcept;

            // コンストラクタ
            IndexOutOfBoundsException(const String &msg) noexcept;

            // コピーコンストラクタ
            IndexOutOfBoundsException(const IndexOutOfBoundsException &t) noexcept;

            // ムーブコンストラクタ
            IndexOutOfBoundsException(IndexOutOfBoundsException &&t) noexcept;

            // デストラクタ
            ~IndexOutOfBoundsException() noexcept;
        };

    } // namespace lang
} // namespace j

#endif // J_LANG_INDEX_OUT_OF_BOUNDS_EXCEPTION_HPP