summaryrefslogtreecommitdiff
path: root/src/flake8/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/flake8/exceptions.py')
-rw-r--r--src/flake8/exceptions.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/flake8/exceptions.py b/src/flake8/exceptions.py
index 4b0ddd1..45db94d 100644
--- a/src/flake8/exceptions.py
+++ b/src/flake8/exceptions.py
@@ -33,23 +33,6 @@ class FailedToLoadPlugin(Flake8Exception):
}
-class InvalidSyntax(Flake8Exception):
- """Exception raised when tokenizing a file fails."""
-
- def __init__(self, exception: Exception) -> None:
- """Initialize our InvalidSyntax exception."""
- self.original_exception = exception
- self.error_message = f"{type(exception).__name__}: {exception.args[0]}"
- self.error_code = "E902"
- self.line_number = 1
- self.column_number = 0
- super().__init__(exception)
-
- def __str__(self) -> str:
- """Format our exception message."""
- return self.error_message
-
-
class PluginRequestedUnknownParameters(Flake8Exception):
"""The plugin requested unknown parameters."""