# cp.rx.go.Throw

A Statement that will throw the provided message.

Example:

Throw("There was an error: %s", errorMessage)

# 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.
Notes None
Examples None
Source src/extensions/cp/rx/go/Throw.lua line 16