{-# 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
$cshowsPrec :: Int -> ASN1Error -> ShowS
showsPrec :: Int -> ASN1Error -> ShowS
$cshow :: ASN1Error -> String
show :: ASN1Error -> String
$cshowList :: [ASN1Error] -> ShowS
showList :: [ASN1Error] -> ShowS
Show, ASN1Error -> ASN1Error -> Bool
(ASN1Error -> ASN1Error -> Bool)
-> (ASN1Error -> ASN1Error -> Bool) -> Eq ASN1Error
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ASN1Error -> ASN1Error -> Bool
== :: ASN1Error -> ASN1Error -> Bool
$c/= :: ASN1Error -> ASN1Error -> Bool
/= :: ASN1Error -> ASN1Error -> Bool
Eq)
instance Exception ASN1Error