qpdf/include/qpdf/QPDFExc.hh

24 lines
625 B
C++
Raw Normal View History

// Copyright (c) 2005-2009 Jay Berkenbilt
//
// This file is part of qpdf. This software may be distributed under
// the terms of version 2 of the Artistic License which may be found
// in the source distribution. It is provided "as is" without express
// or implied warranty.
#ifndef __QPDFEXC_HH__
#define __QPDFEXC_HH__
#include <qpdf/DLL.h>
#include <stdexcept>
class DLL_EXPORT QPDFExc: public std::runtime_error
{
public:
QPDFExc(std::string const& message);
QPDFExc(std::string const& filename, int offset,
std::string const& message);
virtual ~QPDFExc() throw ();
};
#endif // __QPDFEXC_HH__