moreupdates
[synfig.git] / synfig-core / trunk / src / synfig / exception.cpp
1 /* === S Y N F I G ========================================================= */
2 /*!     \file template.cpp
3 **      \brief Template File
4 **
5 **      $Id: exception.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === H E A D E R S ======================================================= */
23
24 #ifdef USING_PCH
25 #       include "pch.h"
26 #else
27 #ifdef HAVE_CONFIG_H
28 #       include <config.h>
29 #endif
30
31 #include "exception.h"
32 #include "general.h"
33
34 #endif
35
36 /* === U S I N G =========================================================== */
37
38 using namespace std;
39 using namespace etl;
40 using namespace synfig;
41
42 /* === M A C R O S ========================================================= */
43
44 /* === G L O B A L S ======================================================= */
45
46 /* === P R O C E D U R E S ================================================= */
47
48 /* === M E T H O D S ======================================================= */
49
50 Exception::BadLinkName::BadLinkName(const String &what):
51         std::runtime_error(what)
52 //      std::runtime_error(_("Bad Link Name")+what.empty()?"":(String(": ")+what))
53 {
54         synfig::error("EXCEPTION: bad link name: "+what);
55 }
56
57 Exception::BadType::BadType(const String &what):
58         std::runtime_error(what)
59 //      std::runtime_error(_("Bad Type")+what.empty()?"":(String(": ")+what))
60 {
61         synfig::error("EXCEPTION: bad type: "+what);
62 }
63
64 Exception::BadFrameRate::BadFrameRate(const String &what):
65         std::runtime_error(what)
66 //      std::runtime_error(_("Bad Link Name")+what.empty()?"":(String(": ")+what))
67 {
68         synfig::error("EXCEPTION: bad frame rate: "+what);
69 }
70
71 Exception::BadTime::BadTime(const String &what):
72         std::runtime_error(what)
73 //      std::runtime_error(_("Bad Link Name")+what.empty()?"":(String(": ")+what))
74 {
75         synfig::error("EXCEPTION: bad time: "+what);
76 }
77
78 Exception::NotFound::NotFound(const String &what):
79         std::runtime_error(what)
80 //      std::runtime_error(_("Not Found")+what.empty()?"":(String(": ")+what))
81 {
82 //      synfig::error("EXCEPTION: not found: "+what);
83 }
84
85 Exception::IDNotFound::IDNotFound(const String &what):
86         NotFound(what)
87 //      std::runtime_error(_("Not Found")+what.empty()?"":(String(": ")+what))
88 {
89 //      synfig::error("EXCEPTION: not found: "+what);
90 }
91
92 Exception::FileNotFound::FileNotFound(const String &what):
93         NotFound(what)
94 //      std::runtime_error(_("Not Found")+what.empty()?"":(String(": ")+what))
95 {
96         synfig::error("EXCEPTION: file not found: "+what);
97 }
98
99 Exception::IDAlreadyExists::IDAlreadyExists(const String &what):
100         std::runtime_error(what)
101 //      std::runtime_error(_("ID Already Exists")+what.empty()?"":(String(": ")+what))
102 {
103         synfig::error("EXCEPTION: id already exists: "+what);
104 }