Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- module Foreign.Marshal.Error
- data IOErrorType :: *
- mkIOError :: IOErrorType -> String -> Maybe Handle -> Maybe FilePath -> IOError
- alreadyExistsErrorType :: IOErrorType
- doesNotExistErrorType :: IOErrorType
- alreadyInUseErrorType :: IOErrorType
- fullErrorType :: IOErrorType
- eofErrorType :: IOErrorType
- illegalOperationErrorType :: IOErrorType
- permissionErrorType :: IOErrorType
- userErrorType :: IOErrorType
- annotateIOError :: IOError -> String -> Maybe Handle -> Maybe FilePath -> IOError
Documentation
module Foreign.Marshal.Error
data IOErrorType :: * Source
An abstract type that contains a value for each variant of IOError
.
mkIOError :: IOErrorType -> String -> Maybe Handle -> Maybe FilePath -> IOError Source
Construct an IOError
of the given type where the second argument
describes the error location and the third and fourth argument
contain the file handle and file path of the file involved in the
error if applicable.
alreadyExistsErrorType :: IOErrorType Source
I/O error where the operation failed because one of its arguments already exists.
doesNotExistErrorType :: IOErrorType Source
I/O error where the operation failed because one of its arguments does not exist.
alreadyInUseErrorType :: IOErrorType Source
I/O error where the operation failed because one of its arguments is a single-use resource, which is already being used.
fullErrorType :: IOErrorType Source
I/O error where the operation failed because the device is full.
eofErrorType :: IOErrorType Source
I/O error where the operation failed because the end of file has been reached.
illegalOperationErrorType :: IOErrorType Source
I/O error where the operation is not possible.
permissionErrorType :: IOErrorType Source
I/O error where the operation failed because the user does not have sufficient operating system privilege to perform that operation.
userErrorType :: IOErrorType Source
I/O error that is programmer-defined.