Oracle Collaboration Suite Discussions Web Services Java API Reference
10g (10.1.2.2)

Part No. B28210-01


Package oracle.discussions.ws.exceptions

This package contains Oracle Discussions web services generic exception.

See:
          Description

Exception Summary
TdWSException Represents a Oracle Discussions Web services generic exception.

 

Package oracle.discussions.ws.exceptions Description

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]);
        }
      }
    

Copyright © 2005, Oracle. All rights reserved.