GEOS
3.12.0
include
geos
util
GEOSException.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2001-2002 Vivid Solutions Inc.
7
* Copyright (C) 2006 Refractions Research Inc.
8
*
9
* This is free software; you can redistribute and/or modify it under
10
* the terms of the GNU Lesser General Public Licence as published
11
* by the Free Software Foundation.
12
* See the COPYING file for more information.
13
*
14
**********************************************************************/
15
16
#pragma once
17
18
#include <geos/export.h>
19
#include <stdexcept>
20
#include <string>
21
22
#ifdef _MSC_VER
23
#pragma warning(push)
24
#pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class
25
#pragma warning(disable: 4275) // warning C4275: non-DLL-interface std::exception used as base for DLL-interface GEOSException
26
#endif
27
28
namespace
geos
{
29
namespace
util {
// geos.util
30
37
class
GEOS_DLL
GEOSException
:
public
std::runtime_error {
38
39
public
:
40
41
GEOSException
()
42
:
43
std::runtime_error(
"Unknown error"
)
44
{}
45
46
GEOSException
(std::string
const
& msg)
47
:
48
std::runtime_error(msg)
49
{}
50
51
GEOSException
(std::string
const
& name, std::string
const
& msg)
52
:
53
std::runtime_error(name +
": "
+ msg)
54
{}
55
56
};
57
58
}
// namespace geos.util
59
}
// namespace geos
60
61
#ifdef _MSC_VER
62
#pragma warning(pop)
63
#endif
64
geos::util::GEOSException
Base class for all GEOS exceptions.
Definition:
GEOSException.h:37
geos
Basic namespace for all GEOS functionalities.
Definition:
Angle.h:25
Generated by
1.8.20