GEOS
3.4.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
geos
util
TopologyException.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
#ifndef GEOS_UTIL_TOPOLOGYEXCEPTION_H
17
#define GEOS_UTIL_TOPOLOGYEXCEPTION_H
18
19
#include <geos/export.h>
20
#include <geos/util/GEOSException.h>
21
#include <geos/geom/Coordinate.h>
// to be removed when .inl is available
22
23
#include <cassert>
24
25
namespace
geos {
26
namespace
util {
// geos.util
27
35
class
GEOS_DLL
TopologyException
:
public
GEOSException
{
36
public
:
37
TopologyException
()
38
:
39
GEOSException
(
"TopologyException"
,
""
)
40
{}
41
42
TopologyException
(
const
std::string& msg)
43
:
44
GEOSException
(
"TopologyException"
, msg)
45
{}
46
47
TopologyException
(
const
std::string& msg,
const
geom::Coordinate
& newPt)
48
:
49
GEOSException
(
"TopologyException"
, msg +
" at "
+ newPt.
toString
()),
50
pt(newPt)
51
{}
52
53
~
TopologyException
()
throw
() {}
54
geom::Coordinate
& getCoordinate() {
return
pt; }
55
private
:
56
geom::Coordinate
pt;
57
};
58
59
}
// namespace geos::util
60
}
// namespace geos
61
62
63
#endif // GEOS_UTIL_TOPOLOGYEXCEPTION_H
Generated on Fri Aug 7 2015 17:16:02 for GEOS by
1.8.2