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

Public Member Functions

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

Public Attributes

str message = message
str xpath_str = str(xpath_spec)

Detailed Description

Syntax error in a XPATH

Definition at line 41 of file exceptions.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 44 of file exceptions.py.

44 def __init__(self, xpath_spec: str | XPath, message: str):
45 super().__init__(str(xpath_spec) + " " + message)
46 self.message: str = message
47 # str(xpath_spec) to deal with str and XPath instance
48 self.xpath_str: str = str(xpath_spec)
49
50

Member Data Documentation

◆ message

str searx.exceptions.SearxXPathSyntaxException.message = message

Definition at line 46 of file exceptions.py.

◆ xpath_str

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

Definition at line 48 of file exceptions.py.


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