dvi2bitmap  dvi2bitmap1.0
DviError.h
Go to the documentation of this file.
1 /* This file is part of dvi2bitmap; see README for copyrights and licence */
2 
3 #ifndef DVIERROR_HEADER_READ
4 #define DVIERROR_HEADER_READ 1
5 
6 #include <string>
7 using std::string;
8 
9 class DviError {
10  public:
11  DviError(const string s) : problem_(s) { }
12  DviError(const char *fmt, ...);
13  virtual ~DviError() { }
14  void print() const;
15  string problem() const { return problem_; }
16  protected:
17  DviError() { };
18  string problem_;
19 };
20 class DviBug : public DviError {
21  public:
22  DviBug(const string s) : DviError(s) { }
23  DviBug(const char *fmt, ...);
24  void print() const;
25 };
26 
27 #endif /* DVIERROR_HEADER_READ */