Error handling

gammaErrorHandler

Function to raise errors in Python.

GammaUnknownError

This is a general error, which is raised if the error message is not yet integrated into the known errors of function gammaErrorHandler().

exception pyroSAR.gamma.error.GammaUnknownError(errormessage)[source]

Bases: Exception

This is a general error, which is raised if the error message is not yet integrated into the known errors of function gammaErrorHandler(). If this error occurs, the message should be included in this function.

pyroSAR.gamma.error.gammaErrorHandler(returncode, out, err)[source]

Function to raise errors in Python. This function is not intended for direct use but as part of function pyroSAR.gamma.auxil.process().

Parameters:
  • returncode (int) – the subprocess return code

  • out (str) – the stdout message returned by a subprocess call of a gamma command

  • err (str) – the stderr message returned by a subprocess call of a gamma command

  • Raises (IOError | ValueError | RuntimeError)

Return type:

None