microsoft.exchange.webservices.data
Class ServiceResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by microsoft.exchange.webservices.data.ServiceRemoteException
              extended by microsoft.exchange.webservices.data.ServiceResponseException
All Implemented Interfaces:
java.io.Serializable

public class ServiceResponseException
extends ServiceRemoteException

Represents a remote service exception that has a single response.

See Also:
Serialized Form

Constructor Summary
protected ServiceResponseException(ServiceResponse response)
          Initializes a new instance.
 
Method Summary
 ServiceError getErrorCode()
          Gets the service error code.
 java.lang.String getMessage()
          Gets a message that describes the current exception.
 ServiceResponse getResponse()
          Gets the ServiceResponse for the exception.
 
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

ServiceResponseException

protected ServiceResponseException(ServiceResponse response)
Initializes a new instance.

Parameters:
response - the response
Method Detail

getResponse

public ServiceResponse getResponse()
Gets the ServiceResponse for the exception.

Returns:
the response

getErrorCode

public ServiceError getErrorCode()
Gets the service error code.

Returns:
the error code

getMessage

public java.lang.String getMessage()
Gets a message that describes the current exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
The error message that explains the reason for the exception.