~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/bad-uri-exception.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SEEN_BAD_URI_EXCEPTION_H
 
2
#define SEEN_BAD_URI_EXCEPTION_H
 
3
 
 
4
#include <exception>
 
5
 
 
6
namespace Inkscape {
 
7
 
 
8
class BadURIException : public std::exception {};
 
9
 
 
10
class UnsupportedURIException : public BadURIException {
 
11
public:
 
12
    char const *what() const throw() { return "Unsupported URI"; }
 
13
};
 
14
 
 
15
class MalformedURIException : public BadURIException {
 
16
public:
 
17
    char const *what() const throw() { return "Malformed URI"; }
 
18
};
 
19
 
 
20
}
 
21
 
 
22
 
 
23
#endif /* !SEEN_BAD_URI_EXCEPTION_H */
 
24
 
 
25
/*
 
26
  Local Variables:
 
27
  mode:c++
 
28
  c-file-style:"stroustrup"
 
29
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
30
  indent-tabs-mode:nil
 
31
  fill-column:99
 
32
  End:
 
33
*/
 
34
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :