Class ExceptionExtensions
Provides a set of extension methods for Exception objects.
Предоставляет набор методов расширения для объектов Exception.
Inherited Members
Namespace: Platform.Exceptions
Assembly: Platform.Exceptions.dll
Syntax
public static class ExceptionExtensions
Fields
| Improve this Doc View SourceExceptionContentsSeparator
Represents the separator used within the process of generating a representation string (ToStringWithAllInnerExceptions(Exception)) to separate different inner exceptions from each other. This field is constant.
Представляет разделитель, используемый внутри процесса формирования строки-представления (ToStringWithAllInnerExceptions(Exception)) для разделения различных внутренних исключений друг от друга. Это поле является константой.
Declaration
public static readonly string ExceptionContentsSeparator
Field Value
| Type | Description |
|---|---|
| String |
ExceptionStringBuildingFailed
Represents a string returned from ToStringWithAllInnerExceptions(Exception) in the event of an unsuccessful attempt to format an exception. This field is a constant.
Представляет строку выдаваемую из ToStringWithAllInnerExceptions(Exception) в случае неудачной попытки форматирования исключения. Это поле является константой.
Declaration
public static readonly string ExceptionStringBuildingFailed
Field Value
| Type | Description |
|---|---|
| String |
Methods
| Improve this Doc View SourceIgnore(Exception)
Ignores the exception, notifying the IgnoredExceptions class about it.
Игнорирует исключение, уведомляя об этом класс IgnoredExceptions.
Declaration
public static void Ignore(this Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception |
|
ToStringWithAllInnerExceptions(Exception)
Returns a string that represents the specified exception with all its inner exceptions.
Возвращает строку, которая представляет указанное исключение со всеми его внутренними исключениями.
Declaration
public static string ToStringWithAllInnerExceptions(this Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | exception | The exception that will be represented as a string. Исключение, которое будет представленно в виде строки. |
Returns
| Type | Description |
|---|---|
| String | A string that represents the specified exception with all its inner exceptions. Cтроку, которая представляет указанное исключение со всеми его внутренними исключениями. |