Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1170

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: core-1.8.0
    • Fix Version/s: 1.9.0
    • Component/s: Core
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              danhaywood Dan Haywood
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: