Skip to main content

ODConsoleErrorMessage class

under construction

We are still working the API Reference! This page might be incomplete or doesn't contain all details!

Overview​

This is an Open Ticket console error message.

It is the same as a normal ODConsoleMessage, but it has a predefined prefix & color scheme for the "ERROR" messages!

View Source

Properties​


inherited color type ➜ api.ODValidConsoleColor​

The color of the prefix of this message

View Source


inherited message string ➜ string​

The main message sent in the console

View Source


inherited params array ➜ api.ODConsoleMessageParam[]​

An array of all the parameters in this message

View Source


inherited prefix string ➜ string​

The prefix of this message (!uppercase recommended!)

View Source


Methods​


constructor() function ➜ api.ODConsoleErrorMessage​

(no description)

View Parameters (2)

View Source


inherited createParamsString() function ➜ string​

Render the parameters of this message in a specific color.

View Parameters (1)

View Source


inherited render() function ➜ boolean​

Render this message to the console using console.log! Returns false when something went wrong.

View Source


inherited setColor() function ➜ api.ODConsoleErrorMessage​

Set the prefix color

View Parameters (1)

View Source


inherited setMessage() function ➜ api.ODConsoleErrorMessage​

Set the message

View Parameters (1)
  • message: string ➜ string - Parameter Description Lorem Ipsum.

View Source


inherited setParams() function ➜ api.ODConsoleErrorMessage​

Set the params

View Parameters (1)

View Source


inherited setPrefix() function ➜ api.ODConsoleErrorMessage​

Set the prefix

View Parameters (1)
  • prefix: string ➜ string - Parameter Description Lorem Ipsum.

View Source


inherited toDebugString() function ➜ string​

Create a more-detailed, non-colored version of this message to store it in the otdebug.txt file!

View Source


Defaults​

under construction

We're still working on this part of the documentation!

Examples​

under construction

We're still working on this part of the documentation!