Click or drag to resize
Aliyun.OSS.Common Namespace
Aliyun OSS SDK for .NET. Copyright (C) Alibaba Cloud Computing. All rights reserved.
Classes
  ClassDescription
Public classClientConfiguration
The client configuration that specifies the network parameters.
Public classClientException
Exception thrown by the SDK for errors that occur within the SDK.
Public classOssErrorCode
The OSS (Object Storage Service) Erro code definitions
Public classOssException
This is the expected exception that is thrown when accessing OSS.
Public classServiceException

The exception returned from OSS server side.

ServiceExceptionis used for wrap the error messages from OSS server side. For example, if Access key Id does not exist, it will throw ServiceException. The exception has the error codes for caller to handle.

WebException means there's network issue when OSS client sends request to OSS server. For example, if the network is not available, it will throw WebException.

InvalidOperationException means the client code handnle parse or handle the response. In this case it might means the response is incomplete or the SDK does not match the OSS's response, in which case the SDK needs the upgrade.

Generally speaking, caller only needs to handle ServiceException. It means the request has been processed by OSS (so network is not an issue), but the request could not be processed by OSS correctly. The error code of ServiceException could help to understand the issue and the caller could handle it properly.