Errors

class revenge.native_error.NativeError(process, errno=None)[source]

Bases: object

Represents a error as defined by the native operating system.

Parameters
  • process (revenge.Process) – Process object

  • errno (int, optional) – The error number for this error

This object currently supports Linux type “errno” numbers.

Examples

# Normally you will be given the object, but you can
# instantiate it yourself as well
e = NativeError(process, 0)

print(e)
"Success"

assert e.description == "Success"
property description

String description of this error.

Type

str

property errno

Error number for this error.

Type

int