Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current Python manual page.
exceptions package
Module contents
GRASS GIS interface to Python exceptions
-
exception
CalledModuleError
(module, code, returncode, errors=None)[source]
Bases: subprocess.CalledProcessError
Raised when a called module ends with error (non-zero return code)
Parameters: |
- module – module name
- code – some code snipped which contains parameters
- rc – process returncode
- error – errors provided by the module (stderr)
|
-
exception
DBError
[source]
Bases: Exception
-
exception
FatalError
[source]
Bases: Exception
-
exception
FlagError
[source]
Bases: Exception
-
exception
GrassError
[source]
Bases: Exception
-
exception
ImplementationError
[source]
Bases: Exception
-
exception
OpenError
[source]
Bases: Exception
-
exception
ParameterError
[source]
Bases: Exception
-
exception
ScriptError
(value)[source]
Bases: Exception
Raised during script execution.
>>> error = ScriptError('My error message!')
>>> error.value
‘My error message!’
>>> print(error)
My error message!
-
exception
Usage
[source]
Bases: Exception
Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current Python manual page.
Help Index | Topics Index | Keywords Index | Full Index
© 2003-2023 GRASS Development Team, GRASS GIS 7.8.8dev Reference Manual