Skip to content

Commit

Permalink
Add doxymentation
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 7, 2018
1 parent 8ba442f commit e637fd5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions python/core/auto_generated/geometry/qgsgeometry.sip.in
Expand Up @@ -1482,8 +1482,19 @@ by calling `error()` on the returned geometry.

Error( const QString &m, const QgsPointXY &p );
QString what() const;
%Docstring
A human readable error message containing details about the error.
%End

QgsPointXY where() const;
%Docstring
The coordinates at which the error is located and should be visualized.
%End

bool hasWhere() const;
%Docstring
True if the location available from :py:func:`where` is valid.
%End

};

Expand Down
11 changes: 11 additions & 0 deletions src/core/geometry/qgsgeometry.h
Expand Up @@ -1432,8 +1432,19 @@ class CORE_EXPORT QgsGeometry
, mLocation( p )
, mHasLocation( true ) {}

/**
* A human readable error message containing details about the error.
*/
QString what() const;

/**
* The coordinates at which the error is located and should be visualized.
*/
QgsPointXY where() const;

/**
* True if the location available from \see where is valid.
*/
bool hasWhere() const;

private:
Expand Down

0 comments on commit e637fd5

Please sign in to comment.