Coverage Report

Created: 2025-11-08 06:13

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/geos/include/geos/util/UnsupportedOperationException.h
Line
Count
Source
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
20
#include <string>
21
22
#include <geos/util/GEOSException.h>
23
24
namespace geos {
25
namespace util { // geos::util
26
27
/**
28
 * \class UnsupportedOperationException util.h geos.h
29
 *
30
 * \brief Indicates that the requested operation is unsupported.
31
 *
32
 * This exception is thrown - for example - when requesting the
33
 * X or Y member of an empty Point
34
 */
35
class GEOS_DLL UnsupportedOperationException: public GEOSException {
36
public:
37
    UnsupportedOperationException()
38
        :
39
0
        GEOSException("UnsupportedOperationException", "")
40
0
    {}
41
42
    UnsupportedOperationException(const std::string& msg)
43
        :
44
169
        GEOSException("UnsupportedOperationException", msg)
45
169
    {}
46
47
0
    ~UnsupportedOperationException() noexcept override {}
48
};
49
50
} // namespace geos::util
51
} // namespace geos
52