pureweb. PurewebException

A class providing the basic general exception for the JavaScript API.

Method Summary

getMessage
Returns the error message included with the exception.
setMessage
Sets the error message to include with the exception.
toString
Returns a string representation of the exception.

Constructor

new PurewebException(opt_message)

Initializes a new instance of PureWebException.
Parameters:
Name Type Argument Description
opt_message string <optional>
A custom message for the exception; if not provided, a default message will be used.
See:

Extends

  • Error

Members

message_ → string

A string containing the default message for the exception, if no custom message is provided.

Method Detail

getMessage() → {string}

Returns the error message included with the exception.

setMessage(msg)

Sets the error message to include with the exception.
Parameters:
Name Type Description
msg string The error message.

toString() → {string}

Returns a string representation of the exception.