Summary
If an exception is thrown within the action, an error messages will be sent to the trace output
containing information about the document source, the current module, and the exception message.
The exception will also be re-thrown once the message has been sent to the trace listeners.
Syntax
public static TResult TraceExceptions<TResult>(this IExecutionContext context, IDocument document, Func<IDocument, TResult> func)
Type Parameters
Name |
Description |
TResult |
The return type of the function. |
Parameters
Name |
Type |
Description |
context |
IExecutionContext |
The current execution context. |
document |
IDocument |
The document to be processed. |
func |
Func<IDocument, TResult> |
The function to evaluate with the document. |
Return Value
Type |
Description |
TResult |
The result of the function. |