{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE BangPatterns #-}
module Data.ASN1.Error
(
ASN1Error(..)
) where
import Control.Exception (Exception)
import Data.Typeable
data ASN1Error = StreamUnexpectedEOC
| StreamInfinitePrimitive
| StreamConstructionWrongSize
| StreamUnexpectedSituation String
| String
| ParsingPartial
| TypeNotImplemented String
| TypeDecodingFailed String
| TypePrimitiveInvalid String
| PolicyFailed String String
deriving (Typeable, Int -> ASN1Error -> ShowS
[ASN1Error] -> ShowS
ASN1Error -> String
(Int -> ASN1Error -> ShowS)
-> (ASN1Error -> String)
-> ([ASN1Error] -> ShowS)
-> Show ASN1Error
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ASN1Error] -> ShowS
$cshowList :: [ASN1Error] -> ShowS
show :: ASN1Error -> String
$cshow :: ASN1Error -> String
showsPrec :: Int -> ASN1Error -> ShowS
$cshowsPrec :: Int -> ASN1Error -> ShowS
Show, ASN1Error -> ASN1Error -> Bool
(ASN1Error -> ASN1Error -> Bool)
-> (ASN1Error -> ASN1Error -> Bool) -> Eq ASN1Error
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ASN1Error -> ASN1Error -> Bool
$c/= :: ASN1Error -> ASN1Error -> Bool
== :: ASN1Error -> ASN1Error -> Bool
$c== :: ASN1Error -> ASN1Error -> Bool
Eq)
instance Exception ASN1Error