hdf5-1.8.15: Haskell interface to the HDF5 scientific data storage library.

Safe Haskell | None
Language | Haskell2010

Bindings.HDF5.Error

Synopsis

- data ErrorClassID
- hdfError :: ErrorClassID
- data HDF5Exception
- errorStack :: HDF5Exception -> [HDF5Error]
- data HDF5Error = HDF5Error {
  - classId :: !ErrorClassID
  - majorNum :: !(Maybe MajorErrCode)
  - minorNum :: !(Maybe MinorErrCode)
  - line :: !Integer
  - funcName :: !ByteString
  - fileName :: !ByteString
  - description :: !ByteString
  }
- class HDFResultType t where
  - isError :: t -> Bool
- withErrorWhen :: (t -> Bool) -> IO t -> IO t
- withErrorWhen_ :: (t -> Bool) -> IO t -> IO ()
- withErrorCheck :: HDFResultType t => IO t -> IO t
- withErrorCheck_ :: HDFResultType t => IO t -> IO ()
- htriToBool :: IO HTri_t -> IO Bool
- registerErrorClass :: ByteString -> ByteString -> ByteString -> IO ErrorClassID
- unregisterErrorClass :: ErrorClassID -> IO ()
- createMajorErrCode :: ErrorClassID -> ByteString -> IO MajorErrCode
- releaseMajorErrCode :: MajorErrCode -> IO ()
- createMinorErrCode :: ErrorClassID -> ByteString -> IO MinorErrCode
- releaseMinorErrCode :: MinorErrCode -> IO ()
- data ErrorStack
- createErrorStack :: IO ErrorStack
- closeErrorStack :: ErrorStack -> IO ()
- getCurrentErrorStack :: IO ErrorStack
- setCurrentErrorStack :: ErrorStack -> IO ()

# Documentation

data ErrorClassID Source #

#### Instances

Instances details

Show ErrorClassID Source # |
Instance details Defined in Bindings.HDF5.Error Methods showsPrec :: Int -> ErrorClassID -> ShowS Source # show :: ErrorClassID -> String Source # showList :: [ErrorClassID] -> ShowS Source #
Eq ErrorClassID Source # |
Instance details Defined in Bindings.HDF5.Error Methods (==) :: ErrorClassID -> ErrorClassID -> Bool Source # (/=) :: ErrorClassID -> ErrorClassID -> Bool Source #
Ord ErrorClassID Source # |

Instance details

Defined in Bindings.HDF5.Error

Methods

compare :: ErrorClassID -> ErrorClassID -> Ordering Source #

(<) :: ErrorClassID -> ErrorClassID -> Bool Source #

(<=) :: ErrorClassID -> ErrorClassID -> Bool Source #

(>) :: ErrorClassID -> ErrorClassID -> Bool Source #

(>=) :: ErrorClassID -> ErrorClassID -> Bool Source #

max :: ErrorClassID -> ErrorClassID -> ErrorClassID Source #

min :: ErrorClassID -> ErrorClassID -> ErrorClassID Source #

HDFResultType ErrorClassID Source # |
Instance details Defined in Bindings.HDF5.Error Methods isError :: ErrorClassID -> Bool Source #
FromHId ErrorClassID Source # |
Instance details Defined in Bindings.HDF5.Error Methods uncheckedFromHId :: HId_t -> ErrorClassID Source #
HId ErrorClassID Source # |
Instance details Defined in Bindings.HDF5.Error Methods hid :: ErrorClassID -> HId_t Source #

hdfError :: ErrorClassID Source #

data HDF5Exception Source #

#### Instances

Instances details

Exception HDF5Exception Source # |
Instance details Defined in Bindings.HDF5.Error Methods toException :: HDF5Exception -> SomeException Source # fromException :: SomeException -> Maybe HDF5Exception Source # displayException :: HDF5Exception -> String Source # backtraceDesired :: HDF5Exception -> Bool Source #
Show HDF5Exception Source # |
Instance details Defined in Bindings.HDF5.Error Methods showsPrec :: Int -> HDF5Exception -> ShowS Source # show :: HDF5Exception -> String Source # showList :: [HDF5Exception] -> ShowS Source #
Eq HDF5Exception Source # |
Instance details Defined in Bindings.HDF5.Error Methods (==) :: HDF5Exception -> HDF5Exception -> Bool Source # (/=) :: HDF5Exception -> HDF5Exception -> Bool Source #
Ord HDF5Exception Source # |

Instance details

Defined in Bindings.HDF5.Error

Methods

compare :: HDF5Exception -> HDF5Exception -> Ordering Source #

(<) :: HDF5Exception -> HDF5Exception -> Bool Source #

(<=) :: HDF5Exception -> HDF5Exception -> Bool Source #

(>) :: HDF5Exception -> HDF5Exception -> Bool Source #

(>=) :: HDF5Exception -> HDF5Exception -> Bool Source #

max :: HDF5Exception -> HDF5Exception -> HDF5Exception Source #

min :: HDF5Exception -> HDF5Exception -> HDF5Exception Source #

errorStack :: HDF5Exception -> [HDF5Error] Source #

data HDF5Error Source #

Constructors

HDF5Error |

Fields

- classId :: !ErrorClassID
- majorNum :: !(Maybe MajorErrCode)
- minorNum :: !(Maybe MinorErrCode)
- line :: !Integer
- funcName :: !ByteString
- fileName :: !ByteString
- description :: !ByteString

#### Instances

Instances details

Show HDF5Error Source # |
Instance details Defined in Bindings.HDF5.Error Methods showsPrec :: Int -> HDF5Error -> ShowS Source # show :: HDF5Error -> String Source # showList :: [HDF5Error] -> ShowS Source #
Eq HDF5Error Source # |
Instance details Defined in Bindings.HDF5.Error Methods (==) :: HDF5Error -> HDF5Error -> Bool Source # (/=) :: HDF5Error -> HDF5Error -> Bool Source #
Ord HDF5Error Source # |

Instance details

Defined in Bindings.HDF5.Error

Methods

compare :: HDF5Error -> HDF5Error -> Ordering Source #

(<) :: HDF5Error -> HDF5Error -> Bool Source #

(<=) :: HDF5Error -> HDF5Error -> Bool Source #

(>) :: HDF5Error -> HDF5Error -> Bool Source #

(>=) :: HDF5Error -> HDF5Error -> Bool Source #

max :: HDF5Error -> HDF5Error -> HDF5Error Source #

min :: HDF5Error -> HDF5Error -> HDF5Error Source #

class HDFResultType t where Source #

Types returned from HDF5 library functions which always signal failure the same way.

Methods

isError :: t -> Bool Source #

#### Instances

Instances details

HDFResultType Attribute Source # |
Instance details Defined in Bindings.HDF5.Attribute Methods isError :: Attribute -> Bool Source #
HDFResultType Dataset Source # |
Instance details Defined in Bindings.HDF5.Dataset Methods isError :: Dataset -> Bool Source #
HDFResultType Dataspace Source # |
Instance details Defined in Bindings.HDF5.Dataspace Methods isError :: Dataspace -> Bool Source #
HDFResultType Datatype Source # |
Instance details Defined in Bindings.HDF5.Datatype.Internal Methods isError :: Datatype -> Bool Source #
HDFResultType ErrorClassID Source # |
Instance details Defined in Bindings.HDF5.Error Methods isError :: ErrorClassID -> Bool Source #
HDFResultType ErrorStack Source # |
Instance details Defined in Bindings.HDF5.Error Methods isError :: ErrorStack -> Bool Source #
HDFResultType File Source # |
Instance details Defined in Bindings.HDF5.File Methods isError :: File -> Bool Source #
HDFResultType Group Source # |
Instance details Defined in Bindings.HDF5.Group Methods isError :: Group -> Bool Source #
HDFResultType ObjectId Source # |
Instance details Defined in Bindings.HDF5.Object Methods isError :: ObjectId -> Bool Source #
HDFResultType PropertyListClassID Source # |
Instance details Defined in Bindings.HDF5.PropertyList Methods isError :: PropertyListClassID -> Bool Source #
HDFResultType PropertyListID Source # |
Instance details Defined in Bindings.HDF5.PropertyList Methods isError :: PropertyListID -> Bool Source #
HDFResultType DAPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.DAPL Methods isError :: DAPL -> Bool Source #
HDFResultType DCPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.DCPL Methods isError :: DCPL -> Bool Source #
HDFResultType DXPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.DXPL Methods isError :: DXPL -> Bool Source #
HDFResultType FAPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.FAPL Methods isError :: FAPL -> Bool Source #
HDFResultType FCPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.FCPL Methods isError :: FCPL -> Bool Source #
HDFResultType FMPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.FMPL Methods isError :: FMPL -> Bool Source #
HDFResultType GAPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.GAPL Methods isError :: GAPL -> Bool Source #
HDFResultType GCPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.GCPL Methods isError :: GCPL -> Bool Source #
HDFResultType LAPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.LAPL Methods isError :: LAPL -> Bool Source #
HDFResultType LCPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.LCPL Methods isError :: LCPL -> Bool Source #
HDFResultType OCPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.OCPL Methods isError :: OCPL -> Bool Source #
HDFResultType OCPYPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.OCPYPL Methods isError :: OCPYPL -> Bool Source #
HDFResultType STRCPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.STRCPL Methods isError :: STRCPL -> Bool Source #
HDFResultType TAPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.TAPL Methods isError :: TAPL -> Bool Source #
HDFResultType TCPL Source # |
Instance details Defined in Bindings.HDF5.PropertyList.TCPL Methods isError :: TCPL -> Bool Source #
HDFResultType H5_index_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: H5_index_t -> Bool Source #
HDFResultType H5_iter_order_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: H5_iter_order_t -> Bool Source #
HDFResultType HAddr_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: HAddr_t -> Bool Source #
HDFResultType HErr_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: HErr_t -> Bool Source #
HDFResultType HTri_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: HTri_t -> Bool Source #
HDFResultType H5I_type_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: H5I_type_t -> Bool Source #
HDFResultType HId_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: HId_t -> Bool Source #
HDFResultType H5T_norm_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: H5T_norm_t -> Bool Source #
HDFResultType H5T_order_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: H5T_order_t -> Bool Source #
HDFResultType H5T_pad_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: H5T_pad_t -> Bool Source #
HDFResultType H5T_str_t Source # |
Instance details Defined in Bindings.HDF5.Core.HDFResultType Methods isError :: H5T_str_t -> Bool Source #

withErrorWhen :: (t -> Bool) -> IO t -> IO t Source #

withErrorWhen_ :: (t -> Bool) -> IO t -> IO () Source #

withErrorCheck :: HDFResultType t => IO t -> IO t Source #

withErrorCheck_ :: HDFResultType t => IO t -> IO () Source #

htriToBool :: IO HTri_t -> IO Bool Source #

registerErrorClass :: ByteString -> ByteString -> ByteString -> IO ErrorClassID Source #

unregisterErrorClass :: ErrorClassID -> IO () Source #

createMajorErrCode :: ErrorClassID -> ByteString -> IO MajorErrCode Source #

releaseMajorErrCode :: MajorErrCode -> IO () Source #

createMinorErrCode :: ErrorClassID -> ByteString -> IO MinorErrCode Source #

releaseMinorErrCode :: MinorErrCode -> IO () Source #

data ErrorStack Source #

#### Instances

Instances details

Show ErrorStack Source # |
Instance details Defined in Bindings.HDF5.Error Methods showsPrec :: Int -> ErrorStack -> ShowS Source # show :: ErrorStack -> String Source # showList :: [ErrorStack] -> ShowS Source #
Eq ErrorStack Source # |
Instance details Defined in Bindings.HDF5.Error Methods (==) :: ErrorStack -> ErrorStack -> Bool Source # (/=) :: ErrorStack -> ErrorStack -> Bool Source #
Ord ErrorStack Source # |

Instance details

Defined in Bindings.HDF5.Error

Methods

compare :: ErrorStack -> ErrorStack -> Ordering Source #

(<) :: ErrorStack -> ErrorStack -> Bool Source #

(<=) :: ErrorStack -> ErrorStack -> Bool Source #

(>) :: ErrorStack -> ErrorStack -> Bool Source #

(>=) :: ErrorStack -> ErrorStack -> Bool Source #

max :: ErrorStack -> ErrorStack -> ErrorStack Source #

min :: ErrorStack -> ErrorStack -> ErrorStack Source #

HDFResultType ErrorStack Source # |
Instance details Defined in Bindings.HDF5.Error Methods isError :: ErrorStack -> Bool Source #
FromHId ErrorStack Source # |
Instance details Defined in Bindings.HDF5.Error Methods uncheckedFromHId :: HId_t -> ErrorStack Source #
HId ErrorStack Source # |
Instance details Defined in Bindings.HDF5.Error Methods hid :: ErrorStack -> HId_t Source #

createErrorStack :: IO ErrorStack Source #

closeErrorStack :: ErrorStack -> IO () Source #

getCurrentErrorStack :: IO ErrorStack Source #

setCurrentErrorStack :: ErrorStack -> IO () Source #