cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS Exception specific types

nikes
Champ on-the-rise
Champ on-the-rise
Hi All,

Are there specific exceptions defined for all CMIS services?

What I see is only one class CmisException which catches all exceptions.

But what if we want to display specific exception details to user? How to catch it?

Thanks for any help.
3 REPLIES 3

nikes
Champ on-the-rise
Champ on-the-rise
Any idea guys?

gclaussn
Champ in-the-making
Champ in-the-making

nikes
Champ on-the-rise
Champ on-the-rise
I wrote following exception handling code


try
{
// Code that causes an exception specific to CMIS
}
catch(CmisException e)
{
       System.out.println("Falut Info Message : " + e.getFaultInfo().getMessage());  // Long description
       System.out.println("Falut Info Value : " + e.getFaultInfo().getType().value()); // short description
}


I am using Apache CXF framework generated stub classes.

Anybody handling cmis exceptions in different way? Please share your experience.

Thanks
Nikesh