Copyright | (c) 2020 8c6794b6 |
---|---|
License | BSD3 |
Maintainer | 8c6794b6 <8c6794b6@gmail.com> |
Safe Haskell | Safe |
Language | Haskell2010 |
Error and exception related codes.
Synopsis
- data HpcCodecovError
- withBriefUsageOnError :: IO a -> IO a
Exception data type and handler
data HpcCodecovError Source #
Exceptions thrown during coverage report generation.
NoTixFile | Tix file path was not given. |
TixNotFound FilePath | Tix file path was given, but not found. |
MixNotFound FilePath [FilePath] | Mix file not found. The first field is the path specified by a tix file. The second is the searched paths. |
SrcNotFound FilePath [FilePath] | Like |
InvalidArgs [String] | Some errors in command line argument, e.g., required value not specified. |
Instances
Show HpcCodecovError Source # | |
Defined in Trace.Hpc.Codecov.Error showsPrec :: Int -> HpcCodecovError -> ShowS # show :: HpcCodecovError -> String # showList :: [HpcCodecovError] -> ShowS # | |
Exception HpcCodecovError Source # | |
Defined in Trace.Hpc.Codecov.Error |
withBriefUsageOnError Source #
Run the given action with a handler for HpcCodecovError
.
The handler will show a brief usage and call exitFailure
when an
exception was caught.