commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Benedict (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-52) [lang] Validate.notNull should throw NullArgumentException
Date Sat, 14 Jul 2007 23:45:04 GMT

    [ https://issues.apache.org/jira/browse/LANG-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512757
] 

Paul Benedict commented on LANG-52:
-----------------------------------

This can be fixed in the 2.x line. Add a second constructor to NullArgumentException which
accepts both the name of the offending field and the message. Because the name isn't provided
by Validate, just pass in null for it, but if it exists you can append both messages together.


> [lang] Validate.notNull should throw NullArgumentException
> ----------------------------------------------------------
>
>                 Key: LANG-52
>                 URL: https://issues.apache.org/jira/browse/LANG-52
>             Project: Commons Lang
>          Issue Type: Bug
>         Environment: Operating System: All
> Platform: All
>            Reporter: Jörg Gottschling
>            Priority: Trivial
>             Fix For: 3.0
>
>         Attachments: LANG-52.patch
>
>
> Validate.notNull throws a IllegalArgumentException but should throw a
> NullArgumentException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message