.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
 
 parameter_name
 
 parameter_value
 

Detailed Description

Raised when query miss a required parameter

Definition at line 12 of file exceptions.py.

Constructor & Destructor Documentation

◆ __init__()

searx.exceptions.SearxParameterException.__init__ ( self,
name,
value )

Definition at line 15 of file exceptions.py.

15 def __init__(self, name, value):
16 if value == '' or value is None:
17 message = 'Empty ' + name + ' parameter'
18 else:
19 message = 'Invalid value "' + value + '" for parameter ' + name
20 super().__init__(message)
21 self.message = message
22 self.parameter_name = name
23 self.parameter_value = value
24
25

Member Data Documentation

◆ message

searx.exceptions.SearxParameterException.message

Definition at line 21 of file exceptions.py.

◆ parameter_name

searx.exceptions.SearxParameterException.parameter_name

Definition at line 22 of file exceptions.py.

◆ parameter_value

searx.exceptions.SearxParameterException.parameter_value

Definition at line 23 of file exceptions.py.


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