Jump to content
We've recently updated our Privacy Statement, available here ×
  • Visualize.js - API Notes and Samples - Error Handling


    nesterone

    API Reference

    Generic Error

    {
        "title": "Generic Errors",
        "description": "A JSON Schema describing Visualize Generic Errors",
        "$schema": "",
        "type": "object",
        "properties": {
            "errorCode": {
               "type": "string"
            },
            "message": {
                "type": "string"
            },
            "parameters":{
                "type": "array"
            }
        },
        "required": ["errorCode", "message"]
    }
        

     

    Common errors 

    [toc]

    unexpected.error

    MessageAn unexpected error has occurred
    DescriptionSome unexpected error happened. In most of cases this is JavaScript exception or 500 HTTP response from server.

    schema.validation.error

    MessageJSON schema validation failed: {VALIDATION_ERROR_MESSAGE}
    DescriptionValidation against schema was failed. Check validationError property in object for more details.

    unsupported.configuration.error

    Message{SPECIFIC_MESSAGE_DEPENDING_ON_ERROR}
    DescriptionSomething is wrong with provided configuration. For now is error happens only when isolateDom = true and defaultJiveUi.enabled = true.

    authentication.error

    MessageAuthentication error
    DescriptionCredentials are not valid or session expired.

    container.not.found.error

    MessageContainer was not found in DOM
    DescriptionSpecified container was not found in DOM.

    report.execution.failed

    MessageReport execution failed
    DescriptionReport execution failed.

    report.execution.cancelled

    MessageReport execution was cancelled
    DescriptionReport execution was cancelled.

    report.export.failed

    MessageReport export failed
    DescriptionReport export failed.

    licence.not.found

    MessageJRS haven't appropriate licence
    DescriptionLicense wasn't provided for JasperReports Server

    licence.expired

    MessageJRS license expired
    DescriptionLicense expired

    resource.not.found

    MessageResource not found in Repository
    DescriptionResource not present in Repository or user haven't permissions to read it

    export.pages.out.range

    MessageRequested pages {0} out of range
    DescriptionUser requested for pages which are not exist for current export

    input.controls.validation.error

    Messagesome message from server
    DescriptionWrong input control params were sent

    Workflows

    Initialization and authentication

    If your app stopped to work without any notification then check that server which provides visualize.js is accessible and return scripts

    visualize({
        auth : { name: "superuser", password: "superuser"}
    }, function(){
        /// your app logic
    }, function(err){
        // handle all initialization and auth errors
    })

    Handle bi components errors

    same for input controls

    visualize({
        auth : { name: "superuser", password: "superuser"}
    }, function(v){
        var report = v.report({
            error: function(err){
                //invoked once report is initialized and runned
            }
        });
        report
            .run()
            .fail(function(err){
                //handle errors here
            });
    )
    

    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...