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

Latest commit

 

History

History
40 lines (30 loc) · 2.21 KB

cp.spec.Message.md

File metadata and controls

40 lines (30 loc) · 2.21 KB

docs » cp.spec.Message


Provides an Message message, which can be thrown via the error function.

API Overview

  • Functions - API calls offered directly by the extension
  • is
  • Constructors - API calls which return an object, typically one that offers API methods
  • Message
  • Methods - API calls which can only be made on an object returned by a constructor
  • traceback

API Documentation

Functions

Signature cp.spec.Message.is(other) -> boolean
Type Function
Description Checks if the other is an instance of the Message class.

Constructors

Signature cp.spec.Message(message)
Type Constructor
Description Creates a new Message message.
Parameters
  • message - the message to send.

Methods

Signature cp.spec.Message:traceback()
Type Method
Description Stores the debug.traceback result at the present time. Can be retrieved via stacktrace