OnError

type OnError a b = String -> Maybe a -> Maybe b
text Data.Text.Encoding.Error
Function type for handling a coding error. It is supplied with two inputs: * A String that describes the error. * The input value that caused the error. If the error arose because the end of input was reached or could not be identified precisely, this value will be Nothing. If the handler returns a value wrapped with Just, that value will be used in the output as the replacement for the invalid input. If it returns Nothing, no value will be used in the output. Should the handler need to abort processing, it should use error or throw an exception (preferably a UnicodeException). It may use the description provided to construct a more helpful error report.
bracketOnError :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c
base Control.Exception.Base, base Control.Exception
Like bracket, but only performs the final action if there was an exception raised by the in-between computation.
bracketOnError :: IO a -> (a -> IO b) -> (a -> IO c) -> IO c
base Control.OldException
Like bracket, but only performs the final action if there was an exception raised by the in-between computation.
illegalOperationErrorType :: IOErrorType
base System.IO.Error
I/O error
isIllegalOperationErrorType :: IOErrorType -> Bool
base System.IO.Error
I/O error
isPermissionError :: IOError -> Bool
base System.IO.Error
An error indicating that an IO operation failed because the user does not have sufficient operating system privilege to perform that operation.
isPermissionErrorType :: IOErrorType -> Bool
base System.IO.Error
I/O error sufficient operating system privilege to perform that operation.
permissionErrorType :: IOErrorType
base System.IO.Error
I/O error sufficient operating system privilege to perform that operation.
RecConError :: String -> Exception
base Control.OldException
An attempt was made to evaluate a field of a record for which no value was given at construction time. The String argument gives the location of the record construction in the source program.
RecConError :: String -> RecConError
base Control.Exception.Base, base Control.Exception
data RecConError
base Control.Exception.Base, base Control.Exception
An uninitialised record field was used. The String gives information about the source location constructed.
recConError :: Addr# -> a
base Control.Exception.Base