Inflection
Morphology Inflection
Loading...
Searching...
No Matches
Throwable.hpp
1/*
2 * Copyright 2016-2024 Apple Inc. All rights reserved.
3 */
4#pragma once
5
6#include <inflection/exception/fwd.hpp>
7#include <exception>
8#include <string>
9
19class INFLECTION_CLASS_API inflection::exception::Throwable
20 : public ::std::exception
21{
22private:
23 ::std::u16string message { };
24 ::std::string whatStr { };
25
26public:
36 explicit Throwable(const std::u16string& message);
40 ~Throwable() override;
41
42public:
47 const char* what() const noexcept override;
52 virtual const ::std::u16string& getMessage() const noexcept;
53
54};
Provides basic capabilities to Exceptions in Inflection.
Definition Throwable.hpp:21
Throwable(const std::u16string &message)
const char * what() const noexcept override
The C++ namespace for Inflection.
Definition fwd.hpp:11