Internationalisation
Bundled Plugins API
Throw
A Statement that will throw the provided message.
Example:
1
Throw("There was an error: %s", errorMessage)
Copied!

API Overview

  • Constructors - API calls which return an object, typically one that offers API methods
  • Throw

API Documentation

Constructors

Throw

Signature
cp.rx.go.Throw([message[, ...]]) -> Throw
Type
Constructor
Description
Creates a new Throw Statement that will throw the message when executed.
Parameters
  • message - The optional message to return. May contain string.format tokens
  • ... - The optional list of parameters to inject into the message.
Returns
  • The Statement which will send the provided error message.
Last modified 1mo ago
Export as PDF
Copy link