Class ServiceResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- microsoft.exchange.webservices.data.core.exception.service.remote.ServiceRemoteException
-
- microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException
-
- All Implemented Interfaces:
Serializable
public class ServiceResponseException extends ServiceRemoteException
Represents a remote service exception that has a single response.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceResponseException(ServiceResponse response)Initializes a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceErrorgetErrorCode()Gets the service error code.StringgetMessage()Gets a message that describes the current exception.ServiceResponsegetResponse()Gets the ServiceResponse for the exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ServiceResponseException
public 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 String getMessage()
Gets a message that describes the current exception.- Overrides:
getMessagein classThrowable- Returns:
- The error message that explains the reason for the exception.
-
-