Atlas
0.7.0
Networking protocol for the Worldforge system.
Exception.h
1
// This file may be redistributed and modified only under the terms of
2
// the GNU Lesser General Public License (See COPYING for details).
3
// Copyright (C) 2001 Al Riddoch
4
5
// $Id$
6
7
#ifndef ATLAS_EXCEPTION_H
8
#define ATLAS_EXCEPTION_H
9
10
#include <string>
11
#include <stdexcept>
12
13
namespace
Atlas
{
14
17
class
Exception
:
public
std::runtime_error
18
{
19
20
public
:
21
explicit
Exception
(
const
std::string & d =
"UNKNOWN ERROR"
) noexcept
22
: std::runtime_error(d) { }
23
24
~
Exception
() noexcept
override
=
default
;
25
26
std::string getDescription()
const
{
27
return
what();
28
}
29
};
30
31
}
// namespace Atlas
32
33
#endif
// ATLAS_EXCEPTION_H
Atlas::Exception
Definition:
Exception.h:18
Atlas
Definition:
Bridge.h:20
src
Atlas
Exception.h
Generated by
1.9.1