AdvancedHTMLParser.exceptions
index
exceptions.py

# Copyright (c) 2015 Tim Savannah under LGPLv3. 
# See LICENSE (https://gnu.org/licenses/lgpl-3.0.txt) for more information.
#  Exceptions used

 
Classes
       
builtins.Exception(builtins.BaseException)
MultipleRootNodeException

 
class MultipleRootNodeException(builtins.Exception)
    Exception raised and used internally when you try to use multiple root nodes
  Example:
    <one>
      <b>Hi</b>
      <i>Hello</i>
    </one>
    <two>
      <b>Cheese</b>
      <i>Ssdf</i>
    </two>
 
This is legal, a fake root node with tag name of constants.INVISIBLE_TAG_NAME will be set at head, and all methods will handle it correctly.
If you need to get the root nodes, and there's the possibility of more than one, consider getRootObjects instead of getRoot.
 
 
Method resolution order:
MultipleRootNodeException
builtins.Exception
builtins.BaseException
builtins.object

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Methods inherited from builtins.Exception:
__init__(self, /, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__new__(*args, **kwargs) from builtins.type
Create and return a new object.  See help(type) for accurate signature.

Methods inherited from builtins.BaseException:
__delattr__(self, name, /)
Implement delattr(self, name).
__getattribute__(self, name, /)
Return getattr(self, name).
__reduce__(...)
__repr__(self, /)
Return repr(self).
__setattr__(self, name, value, /)
Implement setattr(self, name, value).
__setstate__(...)
__str__(self, /)
Return str(self).
with_traceback(...)
Exception.with_traceback(tb) --
set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:
__cause__
exception cause
__context__
exception context
__dict__
__suppress_context__
__traceback__
args