.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.exceptions.SearxParameterException Class Reference
+ Inheritance diagram for searx.exceptions.SearxParameterException:
+ Collaboration diagram for searx.exceptions.SearxParameterException:

Public Member Functions

 __init__ (self, name, value)
 

Public Attributes

 message = message
 
 parameter_name = name
 
 parameter_value = value
 

Detailed Description

Raised when query miss a required parameter

Definition at line 13 of file exceptions.py.

Constructor & Destructor Documentation

◆ __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

Member Data Documentation

◆ message

searx.exceptions.SearxParameterException.message = message

Definition at line 22 of file exceptions.py.

◆ parameter_name

searx.exceptions.SearxParameterException.parameter_name = name

Definition at line 23 of file exceptions.py.

◆ parameter_value

searx.exceptions.SearxParameterException.parameter_value = value

Definition at line 24 of file exceptions.py.


The documentation for this class was generated from the following file: