Click or drag to resize
OssException Class
该异常在对对象存储服务(Object Storage Service)访问失败时抛出。
Inheritance Hierarchy

Namespace: Aliyun.OSS.Common
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.2.0.0 (2.2.0)
Syntax
C#
[SerializableAttribute]
public class OssException : ServiceException

The OssException type exposes the following members.

Constructors
  NameDescription
Public methodOssException
初始化新的OssException实例。
Public methodOssException(String)
初始化新的OssException实例。
Protected methodOssException(SerializationInfo, StreamingContext)
初始化新的OssException实例。
Public methodOssException(String, Exception)
初始化新的OssException实例。
Top
Methods
  NameDescription
Public methodEquals
确定指定的 Object 是否等于当前的 Object
(Inherited from Object.)
Protected methodFinalize
允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。
(Inherited from Object.)
Public methodGetBaseException
当在派生类中重写时,返回 Exception,它是一个或多个并发的异常的根源。
(Inherited from Exception.)
Public methodGetHashCode
用作特定类型的哈希函数。
(Inherited from Object.)
Public methodGetObjectData (Overrides ServiceExceptionGetObjectData(SerializationInfo, StreamingContext).)
Public methodGetType
获取当前实例的运行时类型。
(Inherited from Exception.)
Protected methodMemberwiseClone
创建当前 Object 的浅表副本。
(Inherited from Object.)
Public methodToString
创建并返回当前异常的字符串表示形式。
(Inherited from Exception.)
Top
Properties
  NameDescription
Public propertyData
获取一个提供用户定义的其他异常信息的键/值对的集合。
(Inherited from Exception.)
Public propertyErrorCode
获取错误代码。
(Inherited from ServiceException.)
Public propertyHelpLink
获取或设置指向此异常所关联帮助文件的链接。
(Inherited from Exception.)
Public propertyHostId
获取Host ID。
(Inherited from ServiceException.)
Protected propertyHResult
获取或设置 HRESULT,它是分配给特定异常的编码数值。
(Inherited from Exception.)
Public propertyInnerException
获取导致当前异常的 Exception 实例。
(Inherited from Exception.)
Public propertyMessage
获取描述当前异常的消息。
(Inherited from Exception.)
Public propertyRequestId
获取Request ID。
(Inherited from ServiceException.)
Public propertySource
获取或设置导致错误的应用程序或对象的名称。
(Inherited from Exception.)
Public propertyStackTrace
获取当前异常发生时调用堆栈上的帧的字符串表示形式。
(Inherited from Exception.)
Public propertyTargetSite
获取引发当前异常的方法。
(Inherited from Exception.)
Top
See Also