| Copyright | (c) 2020 8c6794b6 |
|---|---|
| License | BSD3 |
| Maintainer | 8c6794b6 <8c6794b6@gmail.com> |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Trace.Hpc.Codecov.Exception
Contents
Description
Error and exception related codes.
Synopsis
Exception data type and handler
data HpcCodecovError Source #
Exceptions thrown during coverage report generation.
Constructors
| NoTarget | Target 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 |
| InvalidBuildTool String | Invalid build tool. |
| TestSuiteNotFound String | Test suite was given, but not found. |
| InvalidArgs [String] | Some errors in command line argument, e.g., required value not specified. |
Instances
| Show HpcCodecovError Source # | |
Defined in Trace.Hpc.Codecov.Exception Methods showsPrec :: Int -> HpcCodecovError -> ShowS # show :: HpcCodecovError -> String # showList :: [HpcCodecovError] -> ShowS # | |
| Exception HpcCodecovError Source # | |
Defined in Trace.Hpc.Codecov.Exception Methods toException :: HpcCodecovError -> SomeException # | |
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.