Show / Hide Table of Contents

    Class ExceptionExtensions

    Provides a set of extension methods for Exception objects.

    Предоставляет набор методов расширения для объектов Exception.

    Inheritance
    Object
    ExceptionExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Platform.Exceptions
    Assembly: Platform.Exceptions.dll
    Syntax
    public static class ExceptionExtensions

    Fields

    | Improve this Doc View Source

    ExceptionContentsSeparator

    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
    | Improve this Doc View Source

    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 Source

    Ignore(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

    | Improve this Doc View Source

    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троку, которая представляет указанное исключение со всеми его внутренними исключениями.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX