AppFrameworkError QML Type

Provides Error Message related details. More...

Import Statement: import ArcGIS.AppFramework 1.0

Properties

Signals

Detailed Description

The AppFrameworkError type is used to return error information from operations such as downloading a portal item through ItemPackage.

You cannot create or declare a component of this type in QML, it can only be written to by other components.

Item {
        ItemPackage {
                id: itemPackage
                portal: app.portal

                onDownloadComplete: {
                        console.log("Itempackage downloaded")
                }

                onDownloadError: {
                        messageDlg.text = error.message;
                        messageDlg.informativeText = error.details;
                        messageDlg.open();
                }
        }

        MessageDialog {
                id: messageDlg
                title: "Download Error"
                icon: StandardIcon.Critical
        }

        Button {
                text: "Download"
                onClicked: {
                        itemPackage.download(app.info.itemId);
                }
        }
}

Property Documentation

[read-only] code : int

Returns the error code of the current error.


[read-only] details : string

Returns the details of the current error.


[read-only] message : string

Returns the message associated with the current error.


Signal Documentation

objectChanged()

Signal emitted when the error code/messages/details of the error have changed.

Note: The corresponding handler is onObjectChanged.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.