@@ -0,0 +1,1631 @@
+%22%22%22All isort specific exception classes should be defined here%22%22%22%0Afrom path import Path%0Afrom .settings import FILE_SKIP_COMMENT%0A%0A%0Aclass ISortError(Exception):%0A    %22%22%22Base isort exception object from which all isort sourced exceptions should inherit%22%22%22%0A%0A%0Aclass UnableToDetermineEncoding(ISortError):%0A    %22%22%22Raised when isort is unable to determine a provided file's encoding%22%22%22%0A%0A    def __init__(self, file_path: Path, encoding: str, fallback_encoding: str):%0A        super().__init__(%0A            f%22Couldn't open %7Bfile_path%7D with any of the attempted encodings.%22%0A            f%22Given %7Bencoding%7D encoding or %7Bfallback_encoding%7D fallback encoding both failed.%22%0A        )%0A        self.file_path = file_path%0A        self.encoding = encoding%0A        self.fallback_encoding = fallback_encoding%0A%0A%0Aclass IntroducedSyntaxErrors(ISortError):%0A    %22%22%22Raised when isort has introduced a syntax error in the process of sorting imports%22%22%22%0A%0A    def __init__(self, file_path: Path):%0A        super().__init__(%0A            f%22isort introduced syntax errors when attempting to sort the imports contained within %22%0A            f%22%7Bfile_path%7D.%22%0A        )%0A%0A%0Aclass FileSkipped(ISortError):%0A    %22%22%22Should be raised when a file is skipped for any reason%22%22%22%0A%0A    def __init__(self, message: str, file_path: Path):%0A        super().__init__(message)%0A        self.file_path = file_path%0A%0A%0Aclass FileSkipComment(FileSkipped):%0A    %22%22%22Raised when an entire file is skipped due to a isort skip file comment%22%22%22%0A%0A    def __init__(self, file_path: Path):%0A        super().__init__(f%22%7Bfile_path%7D contains an %7BFILE_SKIP_COMMENT%7D comment and was skipped.%22, file_path=file_path)%0A

Add exceptions module