Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ExceptionInfo Class

    Namespace: Stride.Core.Diagnostics
    Assembly: Stride.Core.dll

    This class is used to store some properties of an exception. It is serializable.

    System.Object → ExceptionInfo
    Derived from ExceptionInfo:

    [DataContract]
    [Serializable]
    public sealed class ExceptionInfo
    Name Description
    Constructors
    ExceptionInfo()

    Initializes a new instance of the ExceptionInfo class with default values for its properties

    ExceptionInfo(Exception)

    Initializes a new instance of the ExceptionInfo class from an System.Exception.

    Properties
    InnerExceptions

    Gets or sets the ExceptionInfo of the inner exception.

    Message

    Gets or sets the message of the exception.

    StackTrace

    Gets or sets the stack trace of the exception.

    TypeFullName

    Gets or sets the full name of the exception type. Should correspond to the System.Type.FullName property of the exception type.

    TypeName

    Gets or sets the name of the exception type. Should correspond to the property of the exception type.

    Methods
    ToString()
    | Improve this Doc View Source

    Constructors


    ExceptionInfo()

    Initializes a new instance of the ExceptionInfo class with default values for its properties

    public ExceptionInfo()

    ExceptionInfo(Exception)

    Initializes a new instance of the ExceptionInfo class from an System.Exception.

    public ExceptionInfo(Exception exception)
    Parameters
    Type Name Description
    System.Exception exception

    The exception used to initialize the properties of this instance.

    | Improve this Doc View Source

    Properties


    InnerExceptions

    Gets or sets the ExceptionInfo of the inner exception.

    public ExceptionInfo[] InnerExceptions { get; set; }
    Property Value
    Type Description
    ExceptionInfo[]

    Message

    Gets or sets the message of the exception.

    public string Message { get; set; }
    Property Value
    Type Description
    System.String

    StackTrace

    Gets or sets the stack trace of the exception.

    public string StackTrace { get; set; }
    Property Value
    Type Description
    System.String

    TypeFullName

    Gets or sets the full name of the exception type. Should correspond to the System.Type.FullName property of the exception type.

    public string TypeFullName { get; set; }
    Property Value
    Type Description
    System.String

    TypeName

    Gets or sets the name of the exception type. Should correspond to the property of the exception type.

    public string TypeName { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Methods


    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation