axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samuel Isokpunwu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-905) An ExceptionFactory implementation
Date Tue, 18 Jul 2006 23:52:14 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-905?page=all ]

Samuel Isokpunwu updated AXIS2-905:
-----------------------------------

    Attachment: ExceptionFactoryPatch.txt

Patch file for ExceptionFactory implementation code  and testcase. 

> An ExceptionFactory implementation
> ----------------------------------
>
>                 Key: AXIS2-905
>                 URL: http://issues.apache.org/jira/browse/AXIS2-905
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: jaxws
>    Affects Versions: 1.0
>            Reporter: Samuel Isokpunwu
>         Attachments: ExceptionFactoryPatch.txt
>
>
> Working on implementing an ExceptionFactory class that will wrap the JAXWS WebServiceException
to eliminate any possible nested exception between WebServiceException and the root cause
exception. The wrapper will also allow for easy addition of any useful information to facilitate
traceability and serviceability.
> An example Usage:
>            //implementing class example
>            public class Foo{
>              //Optional global initialization
>              private ExceptionFactory ef [ = ExceptionFactory.instance(this, propertyFile)
];
>              
>              public Foo(){
>                 //Optionally, can choose to create or initialize the ExceptionFactory
global variable from the
>                 //constructor
>                 ef = ExceptionFactory.instance(this, propertyFile);
>              }
>              ---
>              ---
>              public fooMethod(){
>                 try{
>                    throw ef.webServiceException([message | key]);
>                 }
>                 catch(Exception e){
>                    throw ef.webServiceException(e, [message | key]);
>                 }
>              }
>              ---
>              ---
>           }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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