Code

disable Rectangle and Ellipse (Bug 407394)
[inkscape.git] / src / xml / invalid-operation-exception.h
1 /*
2  * Inkscape::XML::InvalidOperationException - invalid operation for node type
3  *
4  * Copyright 2004-2005 MenTaLguY <mental@rydia.net>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * See the file COPYING for details.
12  *
13  */
15 #ifndef SEEN_INKSCAPE_XML_INVALID_OPERATION_EXCEPTION_H
16 #define SEEN_INKSCAPE_XML_INVALID_OPERATION_EXCEPTION_H
18 #include <exception>
19 #include <stdexcept>
21 namespace Inkscape {
23 namespace XML {
25 class InvalidOperationException : public std::logic_error {
26 public:
27     InvalidOperationException(std::string const &message) :
28         std::logic_error(message)
29     { }
30 };
32 }
34 }
36 #endif
38 /*
39   Local Variables:
40   mode:c++
41   c-file-style:"stroustrup"
42   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
43   indent-tabs-mode:nil
44   fill-column:99
45   End:
46 */
47 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :