Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12651

Android: Standardize error reporting in callbacks and events

    Details

      Description

      All events conforming to an error protocol type have the following properties:

      1. success: boolean: True if the command was successful, otherwise false.
      2. code: integer: 0 if the command was successful, otherwise an internal value. If the OS does not provide one, this will be -1.
      3. error: optional string: undefined if the command was successful, otherwise a concatenation of the localized String and userinfo's message if it exists.

      Sub, sub task of https://jira.appcelerator.org/browse/TIMOB-10376

      Values derived from analysis at https://wiki.appcelerator.org/display/pe/Event+property+catalog

      Take a look at changes made in https://jira.appcelerator.org/browse/TIMOB-12610 for hints on what will need changing for consistency and parity.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                ingo Ingo Muschenetz
                Reviewer:
                Allen Yeung
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-15593
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code