Table of Contents

Class ExceptionExtensions

Namespace
Hsl.Xrm.Sdk
Assembly
Hsl.Xrm.Sdk.Core.dll

Extensions for Exception

public static class ExceptionExtensions
Inheritance
ExceptionExtensions
Inherited Members

Methods

ToTraceString(OrganizationServiceFault)

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

public static string ToTraceString(this OrganizationServiceFault fault)

Parameters

fault OrganizationServiceFault

The fault to be logged.

Returns

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.

public static string ToTraceString(this Exception ex)

Parameters

ex Exception

The exception to be transformed.

Returns

string

A human readable string containing the trace data.