1 /* === S Y N F I G ========================================================= */
2 /*! \file exception.cpp
3 ** \brief Template File
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === H E A D E R S ======================================================= */
32 #include "exception.h"
37 /* === U S I N G =========================================================== */
41 using namespace synfig;
43 /* === M A C R O S ========================================================= */
45 /* === G L O B A L S ======================================================= */
47 /* === P R O C E D U R E S ================================================= */
49 /* === M E T H O D S ======================================================= */
51 Exception::BadLinkName::BadLinkName(const String &what):
52 std::runtime_error(what)
53 // std::runtime_error(_("Bad Link Name")+what.empty()?"":(String(": ")+what))
55 synfig::error("EXCEPTION: bad link name: "+what);
58 Exception::BadType::BadType(const String &what):
59 std::runtime_error(what)
60 // std::runtime_error(_("Bad Type")+what.empty()?"":(String(": ")+what))
62 synfig::error("EXCEPTION: bad type: "+what);
65 Exception::BadFrameRate::BadFrameRate(const String &what):
66 std::runtime_error(what)
67 // std::runtime_error(_("Bad Link Name")+what.empty()?"":(String(": ")+what))
69 synfig::error("EXCEPTION: bad frame rate: "+what);
72 Exception::BadTime::BadTime(const String &what):
73 std::runtime_error(what)
74 // std::runtime_error(_("Bad Link Name")+what.empty()?"":(String(": ")+what))
76 synfig::error("EXCEPTION: bad time: "+what);
79 Exception::NotFound::NotFound(const String &what):
80 std::runtime_error(what)
81 // std::runtime_error(_("Not Found")+what.empty()?"":(String(": ")+what))
83 // synfig::error("EXCEPTION: not found: "+what);
86 Exception::IDNotFound::IDNotFound(const String &what):
88 // std::runtime_error(_("Not Found")+what.empty()?"":(String(": ")+what))
90 // synfig::error("EXCEPTION: not found: "+what);
93 Exception::FileNotFound::FileNotFound(const String &what):
95 // std::runtime_error(_("Not Found")+what.empty()?"":(String(": ")+what))
97 synfig::error("EXCEPTION: file not found: "+what);
100 Exception::IDAlreadyExists::IDAlreadyExists(const String &what):
101 std::runtime_error(what)
102 // std::runtime_error(_("ID Already Exists")+what.empty()?"":(String(": ")+what))
104 synfig::error("EXCEPTION: id already exists: "+what);