cosmopolitan/ctl/out_of_range.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
514 B
C
Raw Normal View History

// -*-mode:c++;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8-*-
// vi: set et ft=cpp ts=4 sts=4 sw=4 fenc=utf-8 :vi
#ifndef CTL_OUT_OF_RANGE_H_
#define CTL_OUT_OF_RANGE_H_
#include "exception.h"
namespace ctl {
2024-07-01 10:48:28 +00:00
class out_of_range : public ctl::exception
{
public:
out_of_range() noexcept = default;
~out_of_range() override = default;
const char* what() const noexcept override
{
return "ctl::out_of_range";
}
};
} // namespace ctl
#endif // CTL_OUT_OF_RANGE_H_