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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close