|
Oracle Collaboration Suite Discussions Web Services Java API Reference 10g (10.1.2.2) Part No. B28210-01 |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
This package contains Oracle Discussions web services generic exception.
See:
Description
Exception Summary | |
TdWSException | Represents a Oracle Discussions Web services generic exception. |
This package contains Oracle Discussions web services generic exception.
The exception is raised for various reasons like
The exception wraps a message, error code and server stacktrace.
The error message can be used to identify the problem, that halted the processing.
Error code can be used by the customers, to report errors.
To further, take an in-depth examination on the exception, a string array depticting the server side stacktrace is also included in the exception. The stacktrace provides exact details about the methodd, line number at which the exception is raised.
The code snippet below illustrates the usage of exception bean.
try { //invoke the webservice operations } catch(TdWSException ex) { System.out.println("Error Code :" + ex.getErrorCode()); System.out.println("Error Message :" + ex.getErrorMessage()); String[] trace = ex.getServerStackTrace(); if(trace != null) { for(int i = 0 ; i < trace.length ; i++) System.out.println(trace[i]); } }
|
|
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |