2
* Copyright (C) 2009 Codership Oy <info@codership.com>
8
#include "Exception.hpp"
12
Exception::Exception (const char* msg_str, int errno) throw()
15
strncpy (msg, msg_str, EXCEPTION_MSG_SIZE);
16
msg[EXCEPTION_MSG_SIZE - 1] = '\0';
19
Exception::Exception (const char* msg_str) throw()
22
strncpy (msg, msg_str, EXCEPTION_MSG_SIZE);
23
msg[EXCEPTION_MSG_SIZE - 1] = '\0';