Health​Service​Exception Class

Definition

Represents the base class for all HealthVault exceptions thrown by the SDK.

public class HealthServiceException : Exception
Inheritance
HealthServiceException
Derived

Constructors

Health​Service​Exception()

Creates an instance of the HealthServiceException class with default values.

Health​Service​Exception(​String)

Creates an instance of the HealthServiceException class having the specified error message.

Health​Service​Exception(​Serialization​Info, ​Streaming​Context)

Creates an instance of the HealthServiceException class with the specified serialization information.

Health​Service​Exception(​String, ​Exception)

Creates an instance of the HealthServiceException class having the specified error message and inner exception.

Properties

Error

Gets the information about an error that occurred while processing the request.

Error​Code

Gets the status code returned by HealthVault to indicate the type of error that causes this exception.

Error​Code​Id

Gets the identifier of the status code in the HealthVault response.

Response

Contains the response information from the HealthVault service after processing a request.

Methods

Get​Object​Data(​Serialization​Info, ​Streaming​Context)

Serializes the exception.

To​String()

Retrieves the string representing the HealthServiceException object.