summaryrefslogtreecommitdiffstats
path: root/lib/Utils/ABRTException.cpp
blob: aa6c99d960906d264fdcce28b22522ad1c8813fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "ABRTException.h"

CABRTException::CABRTException(abrt_exception_t type, const char* fmt, ...)
{
    m_type = type;
    va_list ap;
    va_start(ap, fmt);
    m_what = xvasprintf(fmt, ap);
    va_end(ap);
}

CABRTException::CABRTException(const CABRTException& rhs):
    m_type(rhs.m_type),
    m_what(xstrdup(rhs.m_what))
{}