Class Exception doesn't have constructor(const char*) or (const std::string&). Prooflink: http://www.cplusplus.com/reference/exception/exception/