You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2007/06/24 23:01:29 UTC

[jira] Created: (LANG-343) Validate: Throw NullArgumentException

Validate: Throw NullArgumentException
-------------------------------------

                 Key: LANG-343
                 URL: https://issues.apache.org/jira/browse/LANG-343
             Project: Commons Lang
          Issue Type: Improvement
    Affects Versions: 2.3
            Reporter: Paul Benedict
             Fix For: 2.3.1


Validate methods should throw NullArgumentException on detecting null, not just IllegalArgumentException (its superclass)

-- 
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


[jira] Closed: (LANG-343) Validate: Throw NullArgumentException

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed LANG-343.
------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.3.1)

> Validate: Throw NullArgumentException
> -------------------------------------
>
>                 Key: LANG-343
>                 URL: https://issues.apache.org/jira/browse/LANG-343
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.3
>            Reporter: Paul Benedict
>
> Validate methods should throw NullArgumentException on detecting null, not just IllegalArgumentException (its superclass)

-- 
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


[jira] Commented: (LANG-343) Validate: Throw NullArgumentException

Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12512723 ] 

Paul Benedict commented on LANG-343:
------------------------------------

Henri, I read the other issue. There's at least an enhancement here for 2.3 :-) The JavaDoc does not clearly state the message will append "must not be null." I didn't know this and I've been putting full sentences into the exception message. Could you change the title of this ticket, and update the javadoc to make it known? Just show an example that passing in "str" will result in a message like "str must not be null"

> Validate: Throw NullArgumentException
> -------------------------------------
>
>                 Key: LANG-343
>                 URL: https://issues.apache.org/jira/browse/LANG-343
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.3
>            Reporter: Paul Benedict
>
> Validate methods should throw NullArgumentException on detecting null, not just IllegalArgumentException (its superclass)

-- 
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