moreupdates
[synfig.git] / synfig-core / trunk / src / synfig / exception.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file exception.h
3 **      \brief Exceptions
4 **
5 **      $Id: exception.h,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 /* === S T A R T =========================================================== */
23
24 #ifndef __SYNFIG_EXCEPTION_H
25 #define __SYNFIG_EXCEPTION_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include <stdexcept>
30 #include "string_decl.h"
31
32 /* === M A C R O S ========================================================= */
33
34 /* === T Y P E D E F S ===================================================== */
35
36 /* === C L A S S E S & S T R U C T S ======================================= */
37
38 namespace synfig {
39         
40 namespace Exception {
41
42 class BadLinkName : public std::runtime_error
43 {
44 public:
45         BadLinkName(const String &what);
46 }; // END of class BadLinkName
47
48 class BadType : public std::runtime_error
49 {
50 public:
51         BadType(const String &what);
52 }; // END of class BadType
53
54 class IDAlreadyExists : public std::runtime_error
55 {
56 public:
57         IDAlreadyExists(const String &what);
58 };
59
60 class NotFound : public std::runtime_error
61 {
62 public:
63         NotFound(const String &what);
64 };
65
66 class IDNotFound : public NotFound
67 {
68 public:
69         IDNotFound(const String &what);
70 };
71
72 class FileNotFound : public NotFound
73 {
74 public:
75         FileNotFound(const String &what);
76 };
77
78 class BadTime : public std::runtime_error
79 {
80 public:
81         BadTime(const String &what);
82 };
83
84 class BadFrameRate : public std::runtime_error
85 {
86 public:
87         BadFrameRate(const String &what);
88 };
89
90 }; // END of namespace Exception
91
92 }; // END of namespace synfig
93
94 /* === E N D =============================================================== */
95
96 #endif