Skip to content

Class AshxException ​

Namespace: Tool.Web.Api
Assembly: Tool.Net.dll

Api的异常处理类

csharp
[Serializable]
public class AshxException : Exception, ISerializable

Inheritance ​

object ← Exception ← AshxException

Implements ​

ISerializable

Inherited Members ​

Exception.GetBaseException(), Exception.GetObjectData(SerializationInfo, StreamingContext), Exception.GetType(), Exception.ToString(), Exception.Data, Exception.HelpLink, Exception.HResult, Exception.InnerException, Exception.Message, Exception.Source, Exception.StackTrace, Exception.TargetSite, Exception.SerializeObjectState, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Extension Methods ​

ObjectExtension.Add<T>(object, object, object), ObjectExtension.CopyEntity(object, object, params string[]), ObjectExtension.EntityToJson(object), ObjectExtension.EntityToJson(object, bool), ObjectExtension.EntityToJson(object, bool, string), DictionaryExtension.GetDictionary(object), TypeExtension.GetFieldKey(object, string, out bool), TypeExtension.GetFieldKey<T>(object, string, out bool), TypeExtension.GetFieldKey(object, Type, string, out bool), ObjectExtension.GetIntPtr(object), ObjectExtension.GetIntPtrInt(object), TypeExtension.GetPropertieFind(object, string, bool), TypeExtension.GetProperties(object), TypeExtension.GetPropertyKey(object, string, out bool), TypeExtension.GetPropertyKey<T>(object, string, out bool), TypeExtension.GetPropertyKey(object, Type, string, out bool), TypeExtension.GetValue(object, PropertyDescriptor), TypeExtension.GetValue(object, string, bool), TypeExtension.GetValue(object, string), ObjectExtension.Read<T>(object, object, int, int), ObjectExtension.Read<T>(object, int, object, int, int), DictionaryExtension.SetDictionary(object, IDictionary<string, object>), TypeExtension.SetFieldKey(object, string, object), TypeExtension.SetFieldKey<T>(object, string, object), TypeExtension.SetFieldKey(object, Type, string, object), TypeExtension.SetPropertyKey(object, string, object), TypeExtension.SetPropertyKey<T>(object, string, object), TypeExtension.SetPropertyKey(object, Type, string, object), TypeExtension.SetValue(object, PropertyDescriptor, object), TypeExtension.SetValue(object, string, object, bool), TypeExtension.SetValue(object, string, object), ObjectExtension.ToBase64String(object), ObjectExtension.ToBytes(object), ObjectExtension.ToBytes(object, out Type), DictionaryExtension.ToDictionary(object), DictionaryExtension.ToDictionary<T>(object), DictionaryExtension.ToIDictionary(object), DictionaryExtension.ToIDictionary<T>(object), ObjectExtension.ToJson(object), ObjectExtension.ToJson(object, JsonSerializerOptions), ObjectExtension.ToJsonWeb(object), ObjectExtension.ToJsonWeb(object, Action<JsonSerializerOptions>), ObjectExtension.ToTryVar<T>(object, T), ObjectExtension.ToVar<T>(object), ObjectExtension.ToVar(object, Type, bool), ObjectExtension.ToVar(object, string), ObjectExtension.ToXml(object)

Remarks ​

代码由逆血提供支持

Properties ​

ExceptionHandled ​

表示该异常是否已经处理

csharp
public bool ExceptionHandled { get; set; }

Property Value ​

bool

ID ​

表示为该方法指定了一个名称,用于对外的访问安全

csharp
public string ID { get; set; }

Property Value ​

string

IsParameters ​

表示异常输出结果是否包含详细接口调用数据

csharp
public bool IsParameters { get; set; }

Property Value ​

bool

JsonOptions ​

Json配置对象

csharp
public JsonSerializerOptions JsonOptions { get; }

Property Value ​

JsonSerializerOptions

Methods ​

表示该方法的名称

csharp
public string Methods { get; set; }

Property Value ​

string

Parameters ​

获取可读的请求参数信息

csharp
public IReadOnlyDictionary<string, (Val val, string name, object obj)> Parameters { get; }

Property Value ​

IReadOnlyDictionary<string, (Val val, string name, object obj)>

State ​

请求的一个状态

csharp
public AshxState State { get; }

Property Value ​

AshxState

Methods ​

ToParameters() ​

获取接口调用参数文字版

csharp
public string ToParameters()

Returns ​

string

文字表达

ToString() ​

创建并返回当前异常的字符串表示形式。

csharp
public override string ToString()

Returns ​

string

当前异常的字符串表示形式。

基于Apache-2.0协议开源