KiiCloudStorageSDK : KiiCorp.Cloud.Storage Namespace

CloudException Class

The exception that is thrown when KiiCloud sends error response.

Syntax

public class CloudException : SystemException

Remarks

Developers can get server status code and body by properties.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.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.

Public Methods

override
ToString () : string
Dump http status and body. If the body is larger than 400 characters, It will be trimmed.

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.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.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.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0

ToString Method

Dump http status and body. If the body is larger than 400 characters, It will be trimmed.

Syntax

public override string ToString ()

Returns

A string that represents the current KiiCorp.Cloud.Storage.CloudException.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: KiiCorp.Cloud.Storage
Assembly: KiiCloudStorageSDK (in KiiCloudStorageSDK.dll)
Assembly Versions: 3.2.10.0