summaryrefslogtreecommitdiff
path: root/isort/exceptions.py
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2020-07-27 01:53:15 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2020-07-27 01:53:15 -0700
commitb40e584d0742a52fc061f4dd55a4e8469d19c34f (patch)
tree31a29a1a5afc1cd44f32c97b8f9e20d397465ac7 /isort/exceptions.py
parentca19112f21a4862d855485f1dfaf12f8ca6a52ea (diff)
downloadisort-b40e584d0742a52fc061f4dd55a4e8469d19c34f.tar.gz
Resolve #1353: Added support for output format plugin
Diffstat (limited to 'isort/exceptions.py')
-rw-r--r--isort/exceptions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/isort/exceptions.py b/isort/exceptions.py
index ffdc8d9a..b7be81da 100644
--- a/isort/exceptions.py
+++ b/isort/exceptions.py
@@ -77,3 +77,11 @@ class ProfileDoesNotExist(ISortError):
f"Available profiles: {','.join(profiles)}."
)
self.profile = profile
+
+
+class FormattingPluginDoesNotExist(ISortError):
+ """Raised when a formatting plugin is set by the user that doesn't exist"""
+
+ def __init__(self, formatter: str):
+ super().__init__(f"Specified formatting plugin of {formatter} does not exist. ")
+ self.formatter = formatter