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

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

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

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