Errors¶
Module for GVM errors
-
exception
gvm.errors.
GvmError
¶ An exception for gvm errors
Base class for all exceptions originating in python-gvm.
-
exception
gvm.errors.
InvalidArgument
(message=None, *, argument=None, function=None)¶ Raised if an invalid argument/parameter is passed
Derives from
GvmError
- Parameters
message (
Optional
[str
]) – Error message to be displayed. Takes precedence over argument and functionargument (
Optional
[str
]) – Optional name of the invalid argumentfunction (
Optional
[str
]) – Optional name of the called function
-
exception
gvm.errors.
RequiredArgument
(message=None, argument=None, function=None)¶ Raised if a required argument/parameter is missing
Derives from
GvmError
- Parameters
message (
Optional
[str
]) – Error message to be displayed. Takes precedence over argument and function.argument (
Optional
[str
]) – Optional name of the required argument.function (
Optional
[str
]) – Optional name of the called function.