You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Lino Lendi (Jira)" <ji...@apache.org> on 2019/11/20 15:25:00 UTC

[jira] [Created] (AXIS2-5975) More specific Runtime Exceptions

Lino Lendi created AXIS2-5975:
---------------------------------

             Summary: More specific Runtime Exceptions
                 Key: AXIS2-5975
                 URL: https://issues.apache.org/jira/browse/AXIS2-5975
             Project: Axis2
          Issue Type: Improvement
            Reporter: Lino Lendi


As of now the created function checks the XSD restrictions and if they are not met throws a RuntimeException:

 

throw new java.lang.RuntimeException(
 "Input values do not follow defined XSD restrictions");

 

As we know more about the restrictions, since we check them, it would be nice, if these additional informations could also be added to the message of the exceptions.

For example if the test was:

if ((param != null) && (param.length < 1)) ,

instead of just: "Input values do not follow defined XSD restrictions", we could say more about the param, "Input values do not follow defined XSD restrictions; param.length < 1".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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