Show / Hide Table of Contents

    Class ExceptionExtensions

    Extensions for Exception

    Inheritance
    System.Object
    ExceptionExtensions
    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: Hsl.Xrm.Sdk
    Assembly: Hsl.Xrm.Sdk.Core.dll
    Syntax
    public static class ExceptionExtensions

    Methods

    ToTraceString(OrganizationServiceFault)

    Builds a string out of the service fault that can be written to the trace log.

    Declaration
    public static string ToTraceString(this OrganizationServiceFault fault)
    Parameters
    Type Name Description
    Microsoft.Xrm.Sdk.OrganizationServiceFault fault

    The fault to be logged.

    Returns
    Type Description
    System.String

    A human readable string containing the trace data.

    ToTraceString(Exception)

    Builds a string out of the exception that can be written to the trace log.

    Declaration
    public static string ToTraceString(this Exception ex)
    Parameters
    Type Name Description
    System.Exception ex

    The exception to be transformed.

    Returns
    Type Description
    System.String

    A human readable string containing the trace data.

    Back to top Hsl.Xrm.Sdk