scsl/Exceptions.cc

24 lines
268 B
C++

//
// Created by kyle on 2023-10-10.
//
#include "Exceptions.h"
namespace scsl {
AssertionFailed::AssertionFailed(std::string message) : msg(message)
{
}
const char *
AssertionFailed::what() const throw()
{
return const_cast<char *>(this->msg.c_str());
}
}