#include #include #include #include #include "backend/String.h" #include "Exception.h" using namespace std; const char * Exception::what() { return this->error.get(); } Exception::Exception(const char * fmt, ...) { va_list args; va_start(args, fmt); this->error = unique_ptr(strdup(String::va_fmt(args, fmt).c_str())); va_end(args); }