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 (To
Представляет разделитель, используемый внутри процесса формирования строки-представления (To
Declaration
public static readonly string ExceptionContentsSeparator
Field Value
Type | Description |
---|---|
String |
ExceptionStringBuildingFailed
Represents a string returned from To
Представляет строку выдаваемую из To
Declaration
public static readonly string ExceptionStringBuildingFailed
Field Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceIgnore(Exception)
Ignores the exception, notifying the Ignored
Игнорирует исключение, уведомляя об этом класс Ignored
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троку, которая представляет указанное исключение со всеми его внутренними исключениями. |