Class ServiceException

All Implemented Interfaces:
Serializable

@Exported 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:
  • 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 binder
      response - Response HDA string from the content server
      cause - to nest exceptions
    • ServiceException

      public ServiceException(String message, HdaBinderSerializer serializer, 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(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 Details

    • 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 String getStatusMessage()
      Returns:
      the Content Server status message