, aboMessage :: !(Maybe String)
} deriving (Show, Typeable)
-instance Exception Abortion where
- toException = SomeException
- fromException (SomeException e) = cast e
+instance Exception Abortion
-- |Computation of @'abort' status headers msg@ aborts the
-- 'Network.HTTP.Lucu.Resource.Resource' monad with given status,
import Network.HTTP.Lucu.Utils
import Network.URI hiding (path)
import System.IO
-import System.IO.Error hiding (catch)
import Prelude hiding (catch)
$ hPutStrLn stderr $ show abo
flip runRes itr $ driftTo Done
-
- formatIOE :: IOError -> String
- formatIOE ioE = if isUserError ioE then
- ioeGetErrorString ioE
- else
- show ioE