aboutsummaryrefslogtreecommitdiff
path: root/backend/Exception.cpp
blob: beb731281687e59da7117ad54dbe2378c6c70120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "Exception.h"

const char * Exception::what() {
	return this->error.c_str();
}

Exception::Exception(const char * fmt, ...) {
	va_list args;
	va_start(args, fmt);
	this->error = String::va_fmt(args, fmt);
	va_end(args);
}