aboutsummaryrefslogtreecommitdiffstats
path: root/app/Exception.hs
diff options
context:
space:
mode:
Diffstat (limited to 'app/Exception.hs')
-rw-r--r--app/Exception.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Exception.hs b/app/Exception.hs
index 83d624d..ddaef5a 100644
--- a/app/Exception.hs
+++ b/app/Exception.hs
@@ -1,6 +1,7 @@
module Exception
( AnyException (..),
InvalidTreeGrepperResult (..),
+ NoCommits (..),
ProcessException (..),
UnknownFileExtension (..),
)
@@ -12,6 +13,7 @@ import System.Exit (ExitCode)
data AnyException
= InvalidTreeGrepperResult' InvalidTreeGrepperResult
+ | NoCommits' NoCommits
| ProcessException' ProcessException
| UnknownFileExtension' UnknownFileExtension
deriving (Show)
@@ -25,6 +27,11 @@ data InvalidTreeGrepperResult = InvalidTreeGrepperResult
instance Exception InvalidTreeGrepperResult
+data NoCommits = NoCommits
+ deriving (Show)
+
+instance Exception NoCommits
+
data ProcessException = ProcessException String ExitCode LB.ByteString
deriving (Show)