Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
exceptions.cpp
1
2
/***************************************************************************
3
* exceptions.h - Lua related exceptions
4
*
5
* Created: Mon Jun 23 10:28:58 2008
6
* Copyright 2006-2008 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program 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
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#include <lua/exceptions.h>
24
25
namespace
fawkes {
26
27
/** @class LuaRuntimeException exceptions.h <lua/exceptions.h>
28
* Lua runtime exception.
29
* Thrown if a runtime error occurs while executing Lua code.
30
* @author Tim Niemueller
31
*/
32
33
/** Constructor.
34
* @param what in what?
35
* @param errmsg error message
36
*/
37
LuaRuntimeException::LuaRuntimeException
(
const
char
*what,
const
char
*errmsg)
38
:
Exception
(
"Lua runtime error (in '%s'): %s"
, what, errmsg)
39
{
40
}
41
42
43
/** @class LuaErrorException exceptions.h <lua/exceptions.h>
44
* Lua error exception.
45
* Thrown if a runtime error occurs while executing an error handler.
46
* @author Tim Niemueller
47
*/
48
49
/** Constructor.
50
* @param what in what?
51
* @param errmsg error message
52
*/
53
LuaErrorException::LuaErrorException
(
const
char
*what,
const
char
*errmsg)
54
:
Exception
(
"Lua error while running error handler (in '%s'): %s"
, what, errmsg)
55
{
56
}
57
58
}
// end of namespace fawkes
src
libs
lua
exceptions.cpp
Generated by
1.8.1.1