Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.protocol
Class ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.stellent.ridc.IdcClientException
              extended by oracle.stellent.ridc.protocol.ServiceException

All Implemented Interfaces:
java.io.Serializable

public class ServiceException
extends IdcClientException

Exceptions that occur when processing service requests. Specifically, these are errors that are thrown from the Content Server. If you use the deprecated constructors to create this exception, then the binder information will be lost if the exception is serialized and then de-serialized (for example in a j2ee environment). If the binder information is lost, a new binder will be created by the getBinder method with a message stating that the information was lost. The non-deprecated constructors will create a transient binder from the serializable parameters.

See Also:
Serialized Form

Constructor Summary
ServiceException(DataBinder binder)
          Deprecated. DataBinder is not a serializable object.
ServiceException(java.lang.String message, HdaBinderSerializer serializer, java.lang.String response)
           
ServiceException(java.lang.String message, HdaBinderSerializer serializer, java.lang.String response, java.lang.Throwable cause)
           
ServiceException(java.lang.Throwable cause, DataBinder binder)
          Deprecated. DataBinder is not a serializable object

 

Method Summary
 DataBinder getBinder()
           
 int getStatusCode()
           
 java.lang.String getStatusMessage()
           

 

Methods inherited from class oracle.stellent.ridc.IdcClientException
getLocaleMessage, getMessage

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ServiceException

public ServiceException(java.lang.String message,
                        HdaBinderSerializer serializer,
                        java.lang.String response,
                        java.lang.Throwable cause)
Parameters:
message - Usually this is from binder.getLocal ("StatusMessage")
serializer - Serializer used when you parsed the binder
response - Response HDA string from the content server
cause - to nest exceptions

ServiceException

public ServiceException(java.lang.String message,
                        HdaBinderSerializer serializer,
                        java.lang.String response)
Parameters:
message - Usually this is from binder.getLocal ("StatusMessage")
serializer - Serializer used when you parsed the binder
response - Response HDA string from the content server

ServiceException

public ServiceException(java.lang.Throwable cause,
                        DataBinder binder)
Deprecated. DataBinder is not a serializable object
Parameters:
cause - the cause
binder - the data binder

ServiceException

public ServiceException(DataBinder binder)
Deprecated. DataBinder is not a serializable object.
Parameters:
binder - the data binder

Method Detail

getBinder

public DataBinder getBinder()
Returns:
the data binder which was returned from the Content Server

getStatusCode

public int getStatusCode()
Returns:
the Content Server status code

getStatusMessage

public java.lang.String getStatusMessage()
Returns:
the Content Server status message

Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.