PrizmDoc® v14.4 Release - Updated April 1, 2025
PrizmDoc / API Reference / Viewer Control / Namespace: PCCViewer / Class: Error
Class: Error

PCCViewer. Error

new Error(code, message)

The constructor for a Error Object. PCCViewer. Error inherits from the JavaScript Error.

Example

// assume we already have a PCCViewer.Mark object created
var error = new PCCViewer.Error('ResponseEmpty', 'Empty/invalid response from the server');

Parameters:

Name Type Description
code string

A string that indicates the error code. As a convention used across PrizmDoc Viewing Client and Server, the code should be PascalCased and should not contain any spaces.

message string

A developer readable string that indicates details of the error.


Documentation generated by JSDoc 3.6.10 on Fri Mar 21 2025 20:37:34 GMT+0000 (Coordinated Universal Time)