It's all about the answers!

Ask a question

Best Practice for Exception/Error handling


Gaston Williams (81126) | asked Jan 26 '09, 2:48 p.m.
Hi,

What's the recommended best practice for exception handling in Jazz plug-ins? I searched the JazzLabs wiki for information and didn't really find any.

Right now we are just letting Jazz handle any exceptions or errors caused by calling the Jazz API or using values returned by Jazz API.

Is that the best practice?

(It seems to be working fine, but I wondered if there was anything special we should be doing in our plug-in code.)

Thanks,
Gaston

One answer



permanent link
Christophe Elek (2.9k13021) | answered Feb 02 '09, 10:38 a.m.
JAZZ DEVELOPER
grwillia@us.ibm-dot-com.no-spam.invalid (gastonw) wrote in news:gll4k4$nfh
$1@localhost.localdomain:

(It seems to be working fine, but I wondered if there was anything
special we should be doing in our plug-in code.)

Thanks,
Gaston

Hey Gaston, can you elaborate ?
You mean when you call Jazz API what shoudl you do with Exceptions ?
The generic answer is:
Catch, Handle (i.e log and trace how you called it), then create an
exception in your code that will help your customer (so if the jazz api
exception is about a work item but your application does not deal with work
item, explain to the user what function failed and how to recover)

let me know

--
Christophe Elek
Serviceability Architect
IBM Software Group - Rational

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.