/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2023-03-27 * Changed: 2023-03-27 * * */ #include #include #include using ls::std::core::Exception; using ls::std::core::ExceptionMessage; using ls::std::core::NotImplementedException; using std::move; using std::string; NotImplementedException::NotImplementedException() : Exception("NotImplementedException") {} NotImplementedException::NotImplementedException(string _message) : NotImplementedException() { this->message = ::move(_message); } NotImplementedException::~NotImplementedException() noexcept = default; const char *NotImplementedException::what() const noexcept { string concatenatedMessage = this->name + " thrown - "; if (this->message.empty()) { concatenatedMessage = concatenatedMessage + "method is not implemented and should not be used!"; } else { concatenatedMessage = concatenatedMessage + this->message; } return ExceptionMessage{concatenatedMessage}.toCharacterPointer(); }