Skip to content

ProberException

Bases: Exception

A custom exception class for SENTIO's python package.

All errors that occur in this package will be wrapped in this exception class.

__init__(msg, errc=-1)

Create a new ProberException object.

Parameters:

Name Type Description Default
msg str

The error message.

required
errc int

The error code (optional). If no error code is set -1 is used.

-1

error()

Get error code.

Returns:

Name Type Description
errc int

The error code of the exception.

message()

Returns the error message.

Returns:

Name Type Description
errorcode str

The error message.