Fawkes API
Fawkes Development Version
exceptions.cpp
1
2
/***************************************************************************
3
* exceptions.cpp - Generic network related exceptions
4
*
5
* Created: Wed Nov 14 13:26:54 2007
6
* Copyright 2005-2007 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. A runtime exception applies to
14
* this software (see LICENSE.GPL_WRE file mentioned below for details).
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Library General Public License for more details.
20
*
21
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22
*/
23
24
#include <netcomm/utils/exceptions.h>
25
26
namespace
fawkes
{
27
28
/** @class ConnectionDiedException exceptions.h <netcomm/utils/exceptions.h>
29
* Thrown if the connection died during an operation.
30
* @ingroup NetComm
31
*/
32
33
/** Constructor.
34
* @param format format of the message
35
*/
36
ConnectionDiedException::ConnectionDiedException
(
const
char
*format, ...)
37
:
Exception
()
38
{
39
va_list va;
40
va_start(va, format);
41
append
(format, va);
42
va_end(va);
43
}
44
45
}
// end namespace fawkes
fawkes
Fawkes library namespace.
fawkes::Exception
Base class for exceptions in Fawkes.
Definition:
exception.h:36
fawkes::Exception::append
void append(const char *format,...)
Append messages to the message list.
Definition:
exception.cpp:341
fawkes::ConnectionDiedException::ConnectionDiedException
ConnectionDiedException(const char *format,...)
Constructor.
Definition:
exceptions.cpp:36
src
libs
netcomm
utils
exceptions.cpp
Generated by
1.8.13