一款简单易用的基础网络通讯组件库。

UnknownErrorException 类

未知错误异常类,继承自Exception,用于处理未知类型的错误。

Definition

命名空间: TouchSocket.Core
程序集: TouchSocket.Core (在 TouchSocket.Core.dll 中) 版本:3.0.0+ccaf96084d09f972257496d1dd63b8ba3c1e44f0
C#
public sealed class UnknownErrorException : Exception
Inheritance
Object    Exception    UnknownErrorException

构造函数

UnknownErrorException 默认构造函数,当不指定错误消息时,默认使用资源文件中定义的未知错误消息。
UnknownErrorException(String) 构造函数,允许指定自定义的错误消息。

属性

DataGets a collection of key/value pairs that provide additional user-defined information about the exception.
(继承自 Exception。)
HelpLinkGets or sets a link to the help file associated with this exception.
(继承自 Exception。)
HResultGets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
(继承自 Exception。)
InnerExceptionGets the Exception instance that caused the current exception.
(继承自 Exception。)
MessageGets a message that describes the current exception.
(继承自 Exception。)
SourceGets or sets the name of the application or the object that causes the error.
(继承自 Exception。)
StackTraceGets a string representation of the immediate frames on the call stack.
(继承自 Exception。)
TargetSiteGets the method that throws the current exception.
(继承自 Exception。)

方法

EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
GetBaseExceptionWhen overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
(继承自 Exception。)
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetObjectDataWhen overridden in a derived class, sets the SerializationInfo with information about the exception.
(继承自 Exception。)
GetTypeGets the runtime type of the current instance.
(继承自 Exception。)
ToStringCreates and returns a string representation of the current exception.
(继承自 Exception。)

扩展方法

Map
(由 Mapper 定义。)
Map
(由 Mapper 定义。)
MapTTarget
(由 Mapper 定义。)
ToJsonString 转换为Json
(由 SerializeConvert 定义。)

参见