Arbutils/src/ErrorHelpers.cpp

11 lines
401 B
C++

#include "ErrorHelpers.hpp"
#include "Defines.hpp"
namespace ArbUt {
Exception __ErrorHelpers::CreateEnsureError(const char* non_null exp, const std::source_location& location) {
std::stringstream error;
error << "[" << file_name(location.file_name()) << ":" << location.line() << "] ENSURE FAILED: \"";
error << exp << "\"";
return Exception(error.str());
}
}