error_from_app: return an error from a Rook app

Description Usage Arguments Details Value

Description

This function is called to generate an in-band error reply to the API request. The remote requestor will still receive a bzip2-compressed JSON-formatted object, but that object will have a single field named "error", whose value is the string passed to this function.

Usage

1

Arguments

error

character scalar error message to return to app caller

...

additional parameters describing the error. These are JSON-encoded into the API response.

Details

Objects returned from successful API calls never include a top-level field called "error".

Value

Similar to the return value from


jbrzusto/motus-R-package documentation built on May 18, 2019, 7:03 p.m.