pureweb. PurewebException

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

Method Summary

getMessage
Returns the error message included with the exception.
getMessageDetails
Returns the error message details included with the exception.
setMessage
Sets the error message to include with the exception.
setMessageDetails
Sets the error message details 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

Method Detail

getMessage() → {string}

Returns the error message included with the exception.

getMessageDetails() → {string}

Returns the error message details included with the exception.

setMessage(msg)

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

setMessageDetails(msgDetails)

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

toString() → {string}

Returns a string representation of the exception.