PrizmDoc Viewer v13.12 Release - Updated
API Reference / Viewer Control / Namespace: PCCViewer / Class: Error
In This Topic
    Class: Error
    In This Topic

    Class: Error

    PCCViewer. Error

    new Error(code, message)

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

    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.

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

    Documentation generated by JSDoc 3.3.3 on Mon Mar 30 2020 09:24:11 GMT-0400 (Eastern Daylight Time)