Skip to content

Suggestion: more helpful wrong-type errors #649

@bherw

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions