#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


#API Documentation

#Constructors

Signaturecp.rx.go.Throw([message[, ...]]) -> Throw
TypeConstructor
DescriptionCreates 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.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/rx/go/Throw.lua line 16