error
ReQL command: error
Command syntax
r.error(message) → error
Description
Throw a runtime error. If called with no arguments inside the second argument to default
, re-throw the current error.
Example: Iron Man can’t possibly have lost a battle:
r.table("marvel").get("IronMan").do_( ironman -> r.branch( ironman.g("victories").lt(ironman.g("battles")), r.error("impossible code path"), ironman ) ).run(conn);
Get more help
Couldn't find what you were looking for?
- Ask a question on Stack Overflow
- Chat with us and our community on Slack
- Talk to the team on IRC on #rethinkdb@freenode.net — via Webchat
- Ping @rethinkdb on Twitter
- Post an issue on the documentation issue tracker on GitHub
© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/java/error/