Inflection
Morphology Inflection
|
Used to indicate a resource that is required by Inflection is missing. More...
#include <MissingResourceException.hpp>
Public Member Functions | |
MissingResourceException (const std::u16string &message, const std::u16string &className, const std::u16string &key) | |
~MissingResourceException () override | |
virtual const ::std::u16string & | getClassName () const noexcept |
virtual const ::std::u16string & | getKey () const noexcept |
![]() | |
RuntimeException () | |
RuntimeException (const std::u16string &message) | |
~RuntimeException () override | |
![]() | |
Exception () | |
Exception (const std::u16string &message) | |
~Exception () override | |
![]() | |
Throwable () | |
Throwable (const std::u16string &message) | |
~Throwable () override | |
const char * | what () const noexcept override |
virtual const ::std::u16string & | getMessage () const noexcept |
Used to indicate a resource that is required by Inflection is missing.
This is typically thrown by factories when constructing rules for inflection or tokenization. One such language that can throw this is Hebrew.
This exception type is meant to be used with inflection::resources::DataResource. And indicates the absence of a specific key in a resource file.
Definition at line 17 of file MissingResourceException.hpp.
inflection::exception::MissingResourceException::MissingResourceException | ( | const std::u16string & | message, |
const std::u16string & | className, | ||
const std::u16string & | key | ||
) |
Constructor.
message | The message to add to the exception. |
className | The class name of the object throwing this exception. |
key | The key being looked up by inflection::resources::DataResource::getString(). |
|
override |
Destructor
|
virtualnoexcept |
Returns the class name of the object that threw this exception.
|
virtualnoexcept |
Returns the name of the key used during inflection::resources::DataResource::getString() lookup.