KiiAnalyticsSDK : KiiCorp.Cloud.Analytics Namespace

CloudException Class

Thrown when KiiCloud returns error response.

Syntax

public class CloudException : SystemException

Remarks

Developers can get server status code and body by properties.

Requirements

Namespace: KiiCorp.Cloud.Analytics
Assembly: KiiAnalyticsSDK (in KiiAnalyticsSDK.dll)
Assembly Versions: 1.2.0.0

Members

See Also: Inherited members from SystemException.

Public Properties

[read-only]
Body string . Gets the body of server response.
[read-only]
Status int . Gets the status code.

Member Details

Body Property

Gets the body of server response.

Syntax

public string Body { get; }

Value

The body.

Remarks

Format is Json. Developers can handle the details by the following code.
Example
            catch (CloudException e)
            {
            JsonObject json = new JsonObject(e.Body);
            // get values
            }
            

Requirements

Namespace: KiiCorp.Cloud.Analytics
Assembly: KiiAnalyticsSDK (in KiiAnalyticsSDK.dll)
Assembly Versions: 1.2.0.0

Status Property

Gets the status code.

Syntax

public int Status { get; }

Value

The status code.

Remarks

See the API documents.

Requirements

Namespace: KiiCorp.Cloud.Analytics
Assembly: KiiAnalyticsSDK (in KiiAnalyticsSDK.dll)
Assembly Versions: 1.2.0.0