ExceptionTExceptionArgs 类 |
命名空间: HslCommunication.BasicFramework
[SerializableAttribute] public sealed class Exception<TExceptionArgs> : Exception, ISerializable where TExceptionArgs : ExceptionArgs
ExceptionTExceptionArgs 类型公开以下成员。
| 名称 | 说明 | |
|---|---|---|
| ExceptionTExceptionArgs(String, Exception) |
实例化一个异常对象
| |
| ExceptionTExceptionArgs(TExceptionArgs, String, Exception) |
实例化一个异常对象
|
| 名称 | 说明 | |
|---|---|---|
| Args |
消息
| |
| Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception. (继承自 Exception。) | |
| HelpLink | Gets or sets a link to the help file associated with this exception. (继承自 Exception。) | |
| HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (继承自 Exception。) | |
| InnerException | Gets the Exception instance that caused the current exception. (继承自 Exception。) | |
| Message |
获取描述当前异常的消息
(重写 ExceptionMessage.) | |
| Source | Gets or sets the name of the application or the object that causes the error. (继承自 Exception。) | |
| StackTrace | Gets a string representation of the immediate frames on the call stack. (继承自 Exception。) | |
| TargetSite | Gets the method that throws the current exception. (继承自 Exception。) |
| 名称 | 说明 | |
|---|---|---|
| Equals |
确定指定的object是否等于当前的object
(重写 ObjectEquals(Object).) | |
| GetBaseException | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (继承自 Exception。) | |
| GetHashCode | Serves as the default hash function. (重写 ObjectGetHashCode.) | |
| GetObjectData |
获取存储对象的序列化数据
(重写 ExceptionGetObjectData(SerializationInfo, StreamingContext).) | |
| GetType | Gets the runtime type of the current instance. (继承自 Exception。) | |
| ToString | Creates and returns a string representation of the current exception. (继承自 Exception。) |
| 名称 | 说明 | |
|---|---|---|
| ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |