Package oracle.stellent.ridc.protocol
Class ServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.stellent.ridc.IdcClientException
oracle.stellent.ridc.protocol.ServiceException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionServiceException
(String message, HdaBinderSerializer serializer, String response) ServiceException
(String message, HdaBinderSerializer serializer, String response, Throwable cause) ServiceException
(Throwable cause, DataBinder binder) Deprecated.DataBinder is not a serializable objectServiceException
(DataBinder binder) Deprecated.DataBinder is not a serializable object. -
Method Summary
Modifier and TypeMethodDescriptionint
Methods inherited from class oracle.stellent.ridc.IdcClientException
getLocaleMessage, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceException
public ServiceException(String message, HdaBinderSerializer serializer, String response, Throwable cause) - Parameters:
message
- Usually this is from binder.getLocal ("StatusMessage")serializer
- Serializer used when you parsed the binderresponse
- Response HDA string from the content servercause
- to nest exceptions
-
ServiceException
- Parameters:
message
- Usually this is from binder.getLocal ("StatusMessage")serializer
- Serializer used when you parsed the binderresponse
- Response HDA string from the content server
-
ServiceException
Deprecated.DataBinder is not a serializable object- Parameters:
cause
- the causebinder
- the data binder
-
ServiceException
Deprecated.DataBinder is not a serializable object.- Parameters:
binder
- the data binder
-
-
Method Details
-
getBinder
- Returns:
- the data binder which was returned from the Content Server
-
getStatusCode
public int getStatusCode()- Returns:
- the Content Server status code
-
getStatusMessage
- Returns:
- the Content Server status message
-