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

Robert Lazarski resolved AXIS2-5975.
------------------------------------
    Resolution: Fixed

I gave this a shot. See this commit. 

https://github.com/apache/axis-axis2-java-core/commit/88b56cd36469ea0bddb2ce725ca29ff0f6bb7312

> More specific Runtime Exceptions instead of just "Input values do not follow 
> defined XSD restrictions"
> ------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-5975
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5975
>             Project: Axis2
>          Issue Type: Improvement
>            Reporter: Lino Lendi
>            Assignee: Robert Lazarski
>            Priority: Major
>             Fix For: 2.0.0
>
>
> 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.20.10#820010)

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

Reply via email to