Table of Contents

BuildComponentUtilities.GetExceptionMessage Method

Definition

Namespace
Sandcastle.Core.BuildAssembler
Assembly
Sandcastle.Core.dll

This is used to get the message strings from an exception and any of its inner exceptions

public static string GetExceptionMessage(this Exception exception)

Parameters

exception Exception

The exception from which to get the message

Returns

string

The exception message along with any inner exception messages

Exceptions

ArgumentNullException

This is thrown if the exception argument is null

Remarks

XmlException and XsltException messages will be returned with line number, line position, and source URI information.