module Periodic.Types.Error ( Error (..) ) where import Control.Exception (Exception) data Error = MagicNotMatch | PacketDecodeError String | TransportClosed | TransportTimeout | DataTooLarge | InValidError String | CRCNotMatch | EmptyError deriving (Int -> Error -> ShowS [Error] -> ShowS Error -> String (Int -> Error -> ShowS) -> (Error -> String) -> ([Error] -> ShowS) -> Show Error forall a. (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a showList :: [Error] -> ShowS $cshowList :: [Error] -> ShowS show :: Error -> String $cshow :: Error -> String showsPrec :: Int -> Error -> ShowS $cshowsPrec :: Int -> Error -> ShowS Show, Error -> Error -> Bool (Error -> Error -> Bool) -> (Error -> Error -> Bool) -> Eq Error forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a /= :: Error -> Error -> Bool $c/= :: Error -> Error -> Bool == :: Error -> Error -> Bool $c== :: Error -> Error -> Bool Eq, Eq Error Eq Error => (Error -> Error -> Ordering) -> (Error -> Error -> Bool) -> (Error -> Error -> Bool) -> (Error -> Error -> Bool) -> (Error -> Error -> Bool) -> (Error -> Error -> Error) -> (Error -> Error -> Error) -> Ord Error Error -> Error -> Bool Error -> Error -> Ordering Error -> Error -> Error forall a. Eq a => (a -> a -> Ordering) -> (a -> a -> Bool) -> (a -> a -> Bool) -> (a -> a -> Bool) -> (a -> a -> Bool) -> (a -> a -> a) -> (a -> a -> a) -> Ord a min :: Error -> Error -> Error $cmin :: Error -> Error -> Error max :: Error -> Error -> Error $cmax :: Error -> Error -> Error >= :: Error -> Error -> Bool $c>= :: Error -> Error -> Bool > :: Error -> Error -> Bool $c> :: Error -> Error -> Bool <= :: Error -> Error -> Bool $c<= :: Error -> Error -> Bool < :: Error -> Error -> Bool $c< :: Error -> Error -> Bool compare :: Error -> Error -> Ordering $ccompare :: Error -> Error -> Ordering $cp1Ord :: Eq Error Ord) instance Exception Error