Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 1.29 KB

File metadata and controls

27 lines (19 loc) · 1.29 KB

docs » 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

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.