1 /* === S I N F G =========================================================== */
3 ** \brief Template File
5 ** $Id: exception.cpp,v 1.1.1.1 2005/01/04 01:23:14 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
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.
20 /* ========================================================================= */
22 /* === H E A D E R S ======================================================= */
31 #include "exception.h"
36 /* === U S I N G =========================================================== */
40 using namespace sinfg;
42 /* === M A C R O S ========================================================= */
44 /* === G L O B A L S ======================================================= */
46 /* === P R O C E D U R E S ================================================= */
48 /* === M E T H O D S ======================================================= */
50 Exception::BadLinkName::BadLinkName(const String &what):
51 std::runtime_error(what)
52 // std::runtime_error(_("Bad Link Name")+what.empty()?"":(String(": ")+what))
54 sinfg::error("EXCEPTION: bad link name: "+what);
57 Exception::BadType::BadType(const String &what):
58 std::runtime_error(what)
59 // std::runtime_error(_("Bad Type")+what.empty()?"":(String(": ")+what))
61 sinfg::error("EXCEPTION: bad type: "+what);
64 Exception::BadFrameRate::BadFrameRate(const String &what):
65 std::runtime_error(what)
66 // std::runtime_error(_("Bad Link Name")+what.empty()?"":(String(": ")+what))
68 sinfg::error("EXCEPTION: bad frame rate: "+what);
71 Exception::BadTime::BadTime(const String &what):
72 std::runtime_error(what)
73 // std::runtime_error(_("Bad Link Name")+what.empty()?"":(String(": ")+what))
75 sinfg::error("EXCEPTION: bad time: "+what);
78 Exception::NotFound::NotFound(const String &what):
79 std::runtime_error(what)
80 // std::runtime_error(_("Not Found")+what.empty()?"":(String(": ")+what))
82 // sinfg::error("EXCEPTION: not found: "+what);
85 Exception::IDNotFound::IDNotFound(const String &what):
87 // std::runtime_error(_("Not Found")+what.empty()?"":(String(": ")+what))
89 // sinfg::error("EXCEPTION: not found: "+what);
92 Exception::FileNotFound::FileNotFound(const String &what):
94 // std::runtime_error(_("Not Found")+what.empty()?"":(String(": ")+what))
96 sinfg::error("EXCEPTION: file not found: "+what);
99 Exception::IDAlreadyExists::IDAlreadyExists(const String &what):
100 std::runtime_error(what)
101 // std::runtime_error(_("ID Already Exists")+what.empty()?"":(String(": ")+what))
103 sinfg::error("EXCEPTION: id already exists: "+what);