Fawkes API
Fawkes Development Version
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
/** @class LuaErrorException exceptions.h <lua/exceptions.h>
43
* Lua error exception.
44
* Thrown if a runtime error occurs while executing an error handler.
45
* @author Tim Niemueller
46
*/
47
48
/** Constructor.
49
* @param what in what?
50
* @param errmsg error message
51
*/
52
LuaErrorException::LuaErrorException
(
const
char
*what,
const
char
*errmsg)
53
:
Exception
(
"Lua error while running error handler (in '%s'): %s"
, what, errmsg)
54
{
55
}
56
57
}
// end of namespace fawkes
fawkes::LuaRuntimeException::LuaRuntimeException
LuaRuntimeException(const char *what, const char *errmsg)
Constructor.
Definition:
exceptions.cpp:41
fawkes
fawkes::LuaErrorException::LuaErrorException
LuaErrorException(const char *what, const char *errmsg)
Constructor.
Definition:
exceptions.cpp:56
fawkes::Exception
Definition:
exception.h:39
src
libs
lua
exceptions.cpp
Generated by
1.8.16