Skip to content

Add error DSL output #6

@devslash-paul

Description

@devslash-paul

There's some times where an HTTP error, or service error will occur. In that event something should happen, currently it just prints to the stderr.

I'm imagining something such as

runHttp {
  call("http://example.com") {
    onError {
      +StdOut()
      +AppendFile()
    }
  }
}

In general, it'd be much like after except without the response. This should allow for transitive failures to be retried.

It could also allow for onErrors that would feed back into the data provider

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions