You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/07/09 18:30:04 UTC

[jira] [Commented] (ISIS-1170) Throw a better exception if an class (through programmer error) has no properties.

    [ https://issues.apache.org/jira/browse/ISIS-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620795#comment-14620795 ] 

ASF subversion and git services commented on ISIS-1170:
-------------------------------------------------------

Commit a4989fd5f008758370ef09cc6589cb39e780655f in isis's branch refs/heads/master from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=a4989fd ]

ISIS-1170: better exception if a class has no properties/collections at all.


> Throw a better exception if an class (through programmer error) has no properties.
> ----------------------------------------------------------------------------------
>
>                 Key: ISIS-1170
>                 URL: https://issues.apache.org/jira/browse/ISIS-1170
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: core-1.8.0
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>            Priority: Trivial
>             Fix For: 1.9.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)