Raised when query miss a required parameter
Definition at line 13 of file exceptions.py.
◆ __init__()
searx.exceptions.SearxParameterException.__init__ |
( |
| self, |
|
|
| name, |
|
|
| value ) |
Definition at line 16 of file exceptions.py.
16 def __init__(self, name, value):
17 if value == '' or value is None:
18 message = 'Empty ' + name + ' parameter'
19 else:
20 message = 'Invalid value "' + value + '" for parameter ' + name
21 super().__init__(message)
22 self.message = message
23 self.parameter_name = name
24 self.parameter_value = value
25
26
◆ message
searx.exceptions.SearxParameterException.message = message |
◆ parameter_name
searx.exceptions.SearxParameterException.parameter_name = name |
◆ parameter_value
searx.exceptions.SearxParameterException.parameter_value = value |
The documentation for this class was generated from the following file: