| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Control.Exception.Common
Synopsis
- data PartialFunctionError = EmptyList String
- data InputError = NonNegError String Int
- data OutOfBoundsIndexError i
- = OOBIxError String i
- | OOBIxsError String [i]
- | OOBNoCompatRows String (i, i)
- checkIxBound :: MonadThrow m => String -> Int -> UB -> m a -> m a
- data OperandSizeMismatch
- data MatrixException i
- data IterationException a
- = NotConvergedE String Int a
- | DivergingE String Int a a
Documentation
data PartialFunctionError #
Errors associated with partial functions
Instances
| Eq PartialFunctionError # | |
Defined in Control.Exception.Common Methods (==) :: PartialFunctionError -> PartialFunctionError -> Bool # (/=) :: PartialFunctionError -> PartialFunctionError -> Bool # | |
| Show PartialFunctionError # | |
Defined in Control.Exception.Common Methods showsPrec :: Int -> PartialFunctionError -> ShowS # show :: PartialFunctionError -> String # showList :: [PartialFunctionError] -> ShowS # | |
| Exception PartialFunctionError # | |
Defined in Control.Exception.Common Methods toException :: PartialFunctionError -> SomeException # fromException :: SomeException -> Maybe PartialFunctionError # | |
data InputError #
Input errors
Constructors
| NonNegError String Int |
Instances
| Eq InputError # | |
Defined in Control.Exception.Common | |
| Show InputError # | |
Defined in Control.Exception.Common Methods showsPrec :: Int -> InputError -> ShowS # show :: InputError -> String # showList :: [InputError] -> ShowS # | |
| Exception InputError # | |
Defined in Control.Exception.Common Methods toException :: InputError -> SomeException # fromException :: SomeException -> Maybe InputError # displayException :: InputError -> String # | |
data OutOfBoundsIndexError i #
Out of bounds index errors
Constructors
| OOBIxError String i | |
| OOBIxsError String [i] | |
| OOBNoCompatRows String (i, i) |
Instances
| Eq i => Eq (OutOfBoundsIndexError i) # | |
Defined in Control.Exception.Common Methods (==) :: OutOfBoundsIndexError i -> OutOfBoundsIndexError i -> Bool # (/=) :: OutOfBoundsIndexError i -> OutOfBoundsIndexError i -> Bool # | |
| Show i => Show (OutOfBoundsIndexError i) # | |
Defined in Control.Exception.Common Methods showsPrec :: Int -> OutOfBoundsIndexError i -> ShowS # show :: OutOfBoundsIndexError i -> String # showList :: [OutOfBoundsIndexError i] -> ShowS # | |
| (Show i, Typeable i) => Exception (OutOfBoundsIndexError i) # | |
Defined in Control.Exception.Common Methods toException :: OutOfBoundsIndexError i -> SomeException # fromException :: SomeException -> Maybe (OutOfBoundsIndexError i) # displayException :: OutOfBoundsIndexError i -> String # | |
checkIxBound :: MonadThrow m => String -> Int -> UB -> m a -> m a #
data OperandSizeMismatch #
Operand size mismatch errors
Constructors
| DotSizeMismatch Int Int | |
| NonTriangularException String | |
| MatVecSizeMismatchException String (Int, Int) Int |
Instances
| Eq OperandSizeMismatch # | |
Defined in Control.Exception.Common Methods (==) :: OperandSizeMismatch -> OperandSizeMismatch -> Bool # (/=) :: OperandSizeMismatch -> OperandSizeMismatch -> Bool # | |
| Show OperandSizeMismatch # | |
Defined in Control.Exception.Common Methods showsPrec :: Int -> OperandSizeMismatch -> ShowS # show :: OperandSizeMismatch -> String # showList :: [OperandSizeMismatch] -> ShowS # | |
| Exception OperandSizeMismatch # | |
Defined in Control.Exception.Common Methods toException :: OperandSizeMismatch -> SomeException # fromException :: SomeException -> Maybe OperandSizeMismatch # | |
data MatrixException i #
Matrix exceptions
Constructors
| HugeConditionNumber String i | |
| NeedsPivoting String String |
Instances
| Eq i => Eq (MatrixException i) # | |
Defined in Control.Exception.Common Methods (==) :: MatrixException i -> MatrixException i -> Bool # (/=) :: MatrixException i -> MatrixException i -> Bool # | |
| Show i => Show (MatrixException i) # | |
Defined in Control.Exception.Common Methods showsPrec :: Int -> MatrixException i -> ShowS # show :: MatrixException i -> String # showList :: [MatrixException i] -> ShowS # | |
| (Show i, Typeable i) => Exception (MatrixException i) # | |
Defined in Control.Exception.Common Methods toException :: MatrixException i -> SomeException # fromException :: SomeException -> Maybe (MatrixException i) # displayException :: MatrixException i -> String # | |
data IterationException a #
Numerical iteration errors
Constructors
| NotConvergedE String Int a | |
| DivergingE String Int a a |
Instances
| Eq a => Eq (IterationException a) # | |
Defined in Control.Exception.Common Methods (==) :: IterationException a -> IterationException a -> Bool # (/=) :: IterationException a -> IterationException a -> Bool # | |
| Show a => Show (IterationException a) # | |
Defined in Control.Exception.Common Methods showsPrec :: Int -> IterationException a -> ShowS # show :: IterationException a -> String # showList :: [IterationException a] -> ShowS # | |
| (Show a, Typeable a) => Exception (IterationException a) # | |
Defined in Control.Exception.Common Methods toException :: IterationException a -> SomeException # fromException :: SomeException -> Maybe (IterationException a) # displayException :: IterationException a -> String # | |