Skip to content

Suggestion: more helpful wrong-type errors #649

Description

@bherw

Currently the exception just states that the value was the wrong type, for example:

org.json.JSONException: JSONObject["layers"] is not a JSONArray.

It would be helpful if the exception told us what the type actually was as well. Was it null? JSONObject? something else?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions