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

Public Member Functions

 __init__ (self, str|XPath xpath_spec, str message)

Public Attributes

str message = message
str xpath_str = str(xpath_spec)

Detailed Description

Error while getting the result of an XPath expression

Definition at line 112 of file exceptions.py.

Constructor & Destructor Documentation

◆ __init__()

searx.exceptions.SearxEngineXPathException.__init__ ( self,
str | XPath xpath_spec,
str message )

Definition at line 115 of file exceptions.py.

115 def __init__(self, xpath_spec: str | XPath, message: str):
116 super().__init__(str(xpath_spec) + " " + message)
117 self.message: str = message
118 # str(xpath_spec) to deal with str and XPath instance
119 self.xpath_str: str = str(xpath_spec)

Member Data Documentation

◆ message

str searx.exceptions.SearxEngineXPathException.message = message

Definition at line 117 of file exceptions.py.

◆ xpath_str

str searx.exceptions.SearxEngineXPathException.xpath_str = str(xpath_spec)

Definition at line 119 of file exceptions.py.


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