Skip to content

Catching task exceptions #3

Description

@carlosmaniero

The HueIteration monad would have a catch function to catch exceptions of a task. ie:

myAwesomeIterationMonad = do
  taskId <- huePerformTask (throwIO (TypeError "pam!")) (\state _ -> return state)
  hueCatchError taskId (\state err -> return state { myError = err })

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions