29 explicit MaCh3Exception(std::string File,
int Line, std::string Message =
"")
31 size_t lastSlashPos = File.find_last_of(
'/');
32 std::string fileName = (lastSlashPos != std::string::npos) ? File.substr(lastSlashPos + 1) : File;
34 errorMessage = ((Message.empty()) ?
"Terminating MaCh3" : Message);
36 spdlog::set_pattern(
"[%^%l%$] %v");
42 const char*
what() const noexcept
override {
KS: Core MaCh3 definitions and compile-time configuration utilities.
MaCh3 Logging utilities built on top of SPDLOG.
Custom exception class used throughout MaCh3.
const char * what() const noexcept override
Returns the error message associated with this exception.
MaCh3Exception(std::string File, int Line, std::string Message="")
Constructs a MaCh3Exception object with the specified error message.
std::string errorMessage
The error message associated with this exception.