Safe Haskell | None |
---|---|
Language | Haskell2010 |
OpenCV.Exception
- data CvException
- data CoerceMatError
- data ExpectationError a = ExpectationError {
- expectedValue :: !a
- actualValue :: !a
- data CvCppException
- type CvExcept a = Except CvException a
- type CvExceptT m a = ExceptT CvException m a
- pureExcept :: Applicative m => CvExcept a -> CvExceptT m a
- exceptError :: CvExcept a -> a
- exceptErrorIO :: CvExceptT IO a -> IO a
- exceptErrorM :: Monad m => CvExceptT m a -> m a
Exception type
data CvException Source #
Constructors
BindingException !CvCppException | |
CoerceMatError ![CoerceMatError] |
Instances
data CoerceMatError Source #
Constructors
ShapeError !(ExpectationError Int) | |
SizeError !Int !(ExpectationError Int) | |
ChannelError !(ExpectationError Int) | |
DepthError !(ExpectationError Depth) |
Instances
data ExpectationError a Source #
Constructors
ExpectationError | |
Fields
|
Instances
Functor ExpectationError Source # | |
Show a => Show (ExpectationError a) Source # | |
data CvCppException Source #
Instances
Monadic interface
type CvExcept a = Except CvException a Source #
type CvExceptT m a = ExceptT CvException m a Source #
pureExcept :: Applicative m => CvExcept a -> CvExceptT m a Source #
Promoting exceptions to errors
exceptError :: CvExcept a -> a Source #
exceptErrorM :: Monad m => CvExceptT m a -> m a Source #