Register an exception
The dApp should call this method when it cannot proceed with the request processing after an exception happens. This method should be the last method ever called by the dApp backend while processing a request.
When running in production mode, the Cartesi Server Manager pauses the Cartesi Machine and reverts the entire state of the machine to what it was before receiving the request. No HTTP status code will be sent or received.
When running in host mode, the Rollup HTTP Server returns the status code 200. In both cases, the input will be skipped with the reason EXCEPTION and the exception message will be forwarded.
- application/json
Request Body
- payload string
- 200
- default
Accepted the exception throw.
Error response.
- text/plain
- Schema
Schema
- string
Detailed error message.