aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFExc.cc
blob: ddd175edfc168407429193e00aab23d2092cb41a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <qpdf/QPDFExc.hh>
#include <qpdf/QUtil.hh>

DLL_EXPORT
QPDFExc::QPDFExc(std::string const& message) :
    std::runtime_error(message)
{
}

DLL_EXPORT
QPDFExc::QPDFExc(std::string const& filename, int offset,
		 std::string const& message) :
    std::runtime_error(filename + ": offset " + QUtil::int_to_string(offset) +
		       ": " + message)
{
}

DLL_EXPORT
QPDFExc::~QPDFExc() throw ()
{
}