1 #ifndef SEEN_BAD_URI_EXCEPTION_H
2 #define SEEN_BAD_URI_EXCEPTION_H
4 #include <exception>
6 namespace Inkscape {
8 class BadURIException : public std::exception {};
10 class UnsupportedURIException : public BadURIException {
11 public:
12 char const *what() const throw() { return "Unsupported URI"; }
13 };
15 class MalformedURIException : public BadURIException {
16 public:
17 char const *what() const throw() { return "Malformed URI"; }
18 };
20 }
23 #endif /* !SEEN_BAD_URI_EXCEPTION_H */
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 :