module HOCD.Error
  ( OCDError(..)
  ) where

import Data.ByteString (ByteString)

data OCDError
  = OCDError_ReplyMissingSubOnEnd ByteString
  | OCDError_CantReadHex String
  | OCDError_GetAddrInfoFailed
  | OCDError_ParseMemory [OCDError]
  | OCDError_ExpectedOneButGotMore
  deriving (OCDError -> OCDError -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OCDError -> OCDError -> Bool
$c/= :: OCDError -> OCDError -> Bool
== :: OCDError -> OCDError -> Bool
$c== :: OCDError -> OCDError -> Bool
Eq, Int -> OCDError -> ShowS
[OCDError] -> ShowS
OCDError -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OCDError] -> ShowS
$cshowList :: [OCDError] -> ShowS
show :: OCDError -> String
$cshow :: OCDError -> String
showsPrec :: Int -> OCDError -> ShowS
$cshowsPrec :: Int -> OCDError -> ShowS
Show)