Skip to main content

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.

Request Body
  • payload string
Responses

Accepted the exception throw.

Loading...

© 2024 Cartesi Foundation Ltd. All rights reserved.

The Cartesi Project is commissioned by the Cartesi Foundation.

We use cookies to ensure that we give you the best experience on our website. By using the website, you agree to the use of cookies.