/*
 * Author:          Patrick-Christopher Mattulat
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-02-04
 * Changed:         2023-05-19
 *
 * */

#include <ls-std/core/exception/ExceptionMessage.hpp>
#include <ls-std/core/exception/NullPointerException.hpp>

using ls::std::core::Exception;
using ls::std::core::NullPointerException;
using std::move;
using std::string;

NullPointerException::NullPointerException() : Exception("NullPointerException")
{}

NullPointerException::NullPointerException(const string &_message) : NullPointerException()
{
  this->_setMessage(_message);
}

NullPointerException::~NullPointerException() noexcept = default;

const char *NullPointerException::what() const noexcept
{
  return this->_getIdentifiedMessage("reference is null!");
}