axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-2365) Better exception type if failed length check
Date Wed, 13 Jun 2007 15:42:26 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-2365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Amila Chinthaka Suriarachchi resolved AXIS2-2365.
-------------------------------------------------

    Resolution: Fixed

now it throws an ADBException

> Better exception type if failed length check
> --------------------------------------------
>
>                 Key: AXIS2-2365
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2365
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: adb
>    Affects Versions: nightly
>            Reporter: Full Name
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Blocker
>
> If a ADB setter is called with an invalid lenght string, a Runtime>Excpetion without
any further information is being thrown. A specialized excpetion would be usefull.
> if (  (10 < java.lang.String.valueOf(param).length()) &&
> (java.lang.String.valueOf(param).length() >= 80)  ) {
>                                                  this.value=param;
>                                              }
>                                              else {
>                                                  throw new
> java.lang.RuntimeException(); 

-- 
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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message