Errors

Module for GVM errors

exception gvm.errors.GvmClientError

An exception for gvm client errors

Base class for all exceptions originating in python-gvm.

exception gvm.errors.GvmError

An exception for gvm errors

Base class for all exceptions originating in python-gvm.

__init__(message, *args)
exception gvm.errors.GvmResponseError

An exception for gvm server errors

Derives from GvmClientError

Parameters:
  • status – The HTTP response status

  • message – Error message to be displayed. Takes precedence over argument and function

__init__(status=None, message=None)
exception gvm.errors.GvmServerError

An exception for gvm server errors

Derives from GvmError

Parameters:
  • status – The HTTP response status

  • message – Error message to be displayed. Takes precedence over argument and function

__init__(status=None, message=None)
exception gvm.errors.InvalidArgument

Raised if an invalid argument/parameter is passed

Derives from GvmError

Parameters:
  • message – Error message to be displayed. Takes precedence over argument and function

  • argument – Optional name of the invalid argument

  • function – Optional name of the called function

__init__(message=None, *, argument=None, function=None)
exception gvm.errors.InvalidArgumentType

Raised if a passed argument has an invalid type

Derives from GvmError

Parameters:
  • argument – Name of the invalid argument

  • arg_type – The correct argument type

  • function – Optional name of the called function

__init__(argument=None, arg_type=None, *, function=None)
exception gvm.errors.RequiredArgument

Raised if a required argument/parameter is missing

Derives from GvmError

Parameters:
  • message – Error message to be displayed. Takes precedence over argument and function.

  • argument – Optional name of the required argument.

  • function – Optional name of the called function.

__init__(message=None, *, argument=None, function=None)