Class ExceptionExtension
Inheritance
System.Object
ExceptionExtension
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Nui.ServiceModel.Extensions
Assembly: Terrasoft.Nui.ServiceModel.dll
Syntax
public static class ExceptionExtension
Methods
ToResponse<T>(Exception)
Преобразует исключение в ответ.
Declaration
public static T ToResponse<T>(this Exception source)
where T : BaseResponse, new()
Parameters
Type | Name | Description |
---|---|---|
System.Exception | source | Исключение. |
Returns
Type | Description |
---|---|
T | Объект ответа. |
Type Parameters
Name | Description |
---|---|
T |