| Copyright | (c) Mattias Jakobsson 2015 |
|---|---|
| License | GPL-3 |
| Maintainer | mjakob422@gmail.com |
| Stability | unstable |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Grib.Raw.Exception
Description
Exceptions for HGrib.
- data GribException
- isAnyGribException :: GribException -> Bool
- isGribException :: ErrorCode -> GribException -> Bool
- isNullPtrReturned :: GribException -> Bool
- data ErrorCode
- = GribInvalidKeyValue
- | GribValueDifferent
- | GribDifferentEdition
- | GribInvalidBpv
- | GribCorruptedIndex
- | GribMessageMalformed
- | GribUnderflow
- | GribSwitchNoMatch
- | GribConstantField
- | GribMessageTooLarge
- | GribInternalArrayTooSmall
- | GribPrematureEndOfFile
- | GribNullIndex
- | GribEndOfIndex
- | GribWrongGrid
- | GribNoValues
- | GribEnd
- | GribWrongType
- | GribNoDefinitions
- | GribConceptNoMatch
- | GribOutOfArea
- | GribMissingKey
- | GribInvalidOrderby
- | GribInvalidNearest
- | GribInvalidKeysIterator
- | GribInvalidIterator
- | GribInvalidIndex
- | GribInvalidGrib
- | GribInvalidFile
- | GribWrongStepUnit
- | GribWrongStep
- | GribInvalidType
- | GribWrongLength
- | GribValueCannotBeMissing
- | GribInvalidSectionNumber
- | GribNullHandle
- | GribInvalidArgument
- | GribReadOnly
- | GribOutOfMemory
- | GribGeocalculusProblem
- | GribNoMoreInSet
- | GribEncodingError
- | GribDecodingError
- | GribInvalidMessage
- | GribIoProblem
- | GribNotFound
- | GribWrongArraySize
- | GribCodeNotFoundInTable
- | GribFileNotFound
- | GribArrayTooSmall
- | Grib7777NotFound
- | GribNotImplemented
- | GribBufferTooSmall
- | GribInternalError
- | GribEndOfFile
- | GribSuccess
GRIB Exceptions
data GribException Source
An exception carrying an ErrorCode or representing a returned
null pointer.
Constructors
| GribException ErrorCode | |
| NullPtrReturned |
Instances
Predicates
isAnyGribException :: GribException -> Bool Source
True for any GribException.
isGribException :: ErrorCode -> GribException -> Bool Source
True if a GribException carries the given ErrorCode.
isNullPtrReturned :: GribException -> Bool Source
True for NullPtrReturned.
Error codes
Error codes returned by the grib_api functions.
Constructors