commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SANDBOX-423) [BeanUtils2] Wrap checked exceptions from BeanAccessor.get() into BeanReflectionException
Date Tue, 19 Jun 2012 12:35:43 GMT

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

Simone Tripodi commented on SANDBOX-423:
----------------------------------------

I think Jörg approach is interesting - I'd like you could do anyway an experiment by starting
from the exception you already defined in the first patch, and specializing pattern/arguments
in derived exceptions, i.e. (quick sample)

{code}
BeanPropertyNotFoundException( String propertyName, Class<?> target, Throwable cause
)
{
    super( cause, format( "Property %s not found in %s type", propertyName, target.getName()
) );
    this.propertyName = propertyName;
    this.target = target;
}
{code}

If the experimentation fails, we'll be always in time to change the signatures since we're
still in sandbox - rooms for improvements will always be available :)

best and TIA 
                
> [BeanUtils2] Wrap checked exceptions from BeanAccessor.get() into BeanReflectionException
> -----------------------------------------------------------------------------------------
>
>                 Key: SANDBOX-423
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-423
>             Project: Commons Sandbox
>          Issue Type: Sub-task
>          Components: BeanUtils2
>    Affects Versions: Nightly Builds
>            Reporter: Benedikt Ritter
>             Fix For: Nightly Builds
>
>         Attachments: SANDBOX-423.patch
>
>
> * Change method signature of BeanAccessor.get()
> * in DefaultBeanAccessor.get() catch all checked exceptions
> * modify GetPropertyTestCase accordingly

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message