Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1170

Throw a better exception if an class (through programmer error) has no properties.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • core-1.8.0
    • 1.9.0
    • Core
    • None

    Description

      Currently the Wicket viewer will throw an "unauthorized exception". This makes sense when the object has properties (or collections) but the current user is not authorized to view any of them.

      However, if the domain programmer has made a mistake and the class itself actually has no properties or collections at all (eg they forgot to add getters) then we should throw a more meaningful exception to help the programmer realize their mistake.

      Attachments

        Activity

          People

            Unassigned Unassigned
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: