1 /***************************************************************************
3 * Copyright (C) 2006 David Brodsky *
5 * This library is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU Library General Public *
7 * License as published by the Free Software Foundation and appearing *
8 * in the file LICENSE.LGPL included in the packaging of this file. *
10 * This library is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * Library General Public License for more details. *
15 ***************************************************************************/
17 #ifndef _tairon_core_exceptions_h
18 #define _tairon_core_exceptions_h
28 /** \brief Basic class for all Tairon-related exceptions.
33 /** Constructor that takes as an argument only description of the exception.
35 Exception(const String
&desc
);
39 virtual ~Exception() {};
43 virtual operator const String
&();
46 /** Description of the exception.
51 /** \brief Exception thrown when a given key is invalid.
53 class KeyException
: public Exception
56 /** Standard constructor.
58 KeyException(const String
&desc
) : Exception(desc
) {};
60 /** Default destructor.
62 virtual ~KeyException() {};
67 }; // namespace Tairon
72 // vim: ai sw=4 ts=4 noet fdm=marker