Service |
The ServiceException type exposes the following members.
Name | Description | |
---|---|---|
Failure |
Gets the non-null Failure object containing details of
the failure on the API's servers that led to this exception on the
client.
(Inherited from FailureException) | |
IsDueToServiceTemporarilyDown | Returns true if this failure was caused by a temporary problem preventing the API service from functioning properly (sorry!). | |
IsDueToServiceUnexpectedError | Returns true if this failure was caused by a unexpected error in the API service (sorry!). | |
Message |
Overridden to return the Failure details as the exception
message.
(Inherited from FailureException) | |
ResponseMetadata |
Gets the non-null metadata from the
FailureResponse that brought details of this failure back
from the API servers.
(Inherited from RequestFailureException) |
This exception corresponds to any failure code starting with "Service".
You can interrogate the IsDueToServiceXXX properties of this exception to find out more about the cause. But do note that it is possible for none of those properties to be true if a relevant new failure code is added into the API. Be prepared for this in your handling.