+ class documentation
+
+
+
+
+
+ class BootstraparseTokenError(BootstraparseError):
Known subclasses: bootstraparse.modules.error_mngr.MismatchedContainerError
+
+
+
+ Error on a token, provides if possible the line and column number of the error, the file name and the message of the error and if possible a context for the error
+
+
+
+
+
+
+
+
+
+
+ | Method | +__init__ |
+ Undocumented | +
| Method | +context |
+ Returns the context of the error as a multiline string :return: The context of the error :rtype: str | +
| Method | +get |
+ Returns the context of the error :return: The context of the error :rtype: str | +
| Instance Variable | +context |
+ Undocumented | +
| Instance Variable | +index |
+ Undocumented | +
| Instance Variable | +label |
+ Undocumented | +
| Instance Variable | +line |
+ Undocumented | +
| Instance Variable | +name |
+ Undocumented | +
| Instance Variable | +pile |
+ Undocumented | +
| Instance Variable | +token |
+ Undocumented | +
+
+
+
+
+
+
+
+
+
+
+
+
+
+ def context_multiline(self, context_size=10):
+
+
+
+
+
+
+
+Returns the context of the error as a multiline string :return: The context of the error :rtype: str
+
+
+
+
+
+
+
+
+
+
+
+
+ def get_context(self, context_size=5):
+
+
+
+
+
+
+
+Returns the context of the error :return: The context of the error :rtype: str
+