|
@@ -3,23 +3,26 @@
|
|
* Company: Lynar Studios
|
|
* Company: Lynar Studios
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
* Created: 2023-02-04
|
|
* Created: 2023-02-04
|
|
- * Changed: 2023-02-07
|
|
|
|
|
|
+ * Changed: 2023-02-22
|
|
*
|
|
*
|
|
* */
|
|
* */
|
|
|
|
|
|
#include <ls-std/core/exception/ExceptionMessage.hpp>
|
|
#include <ls-std/core/exception/ExceptionMessage.hpp>
|
|
#include <ls-std/core/exception/IllegalArithmeticOperationException.hpp>
|
|
#include <ls-std/core/exception/IllegalArithmeticOperationException.hpp>
|
|
|
|
|
|
-ls::std::core::IllegalArithmeticOperationException::IllegalArithmeticOperationException() = default;
|
|
|
|
-
|
|
|
|
-ls::std::core::IllegalArithmeticOperationException::IllegalArithmeticOperationException(::std::string _message) : message(::std::move(_message))
|
|
|
|
|
|
+ls::std::core::IllegalArithmeticOperationException::IllegalArithmeticOperationException() : ls::std::core::Exception("IllegalArithmeticOperationException")
|
|
{}
|
|
{}
|
|
|
|
|
|
|
|
+ls::std::core::IllegalArithmeticOperationException::IllegalArithmeticOperationException(::std::string _message) : ls::std::core::IllegalArithmeticOperationException()
|
|
|
|
+{
|
|
|
|
+ this->message = ::std::move(_message);
|
|
|
|
+}
|
|
|
|
+
|
|
ls::std::core::IllegalArithmeticOperationException::~IllegalArithmeticOperationException() = default;
|
|
ls::std::core::IllegalArithmeticOperationException::~IllegalArithmeticOperationException() = default;
|
|
|
|
|
|
const char *ls::std::core::IllegalArithmeticOperationException::what() const noexcept
|
|
const char *ls::std::core::IllegalArithmeticOperationException::what() const noexcept
|
|
{
|
|
{
|
|
- ::std::string concatenatedMessage = "IllegalArithmeticOperationException thrown - ";
|
|
|
|
|
|
+ ::std::string concatenatedMessage = this->name + " thrown - ";
|
|
|
|
|
|
if (this->message.empty())
|
|
if (this->message.empty())
|
|
{
|
|
{
|