Extract Method
Definition
- Namespace
- Cuemon.Diagnostics
- Assemblies
- Cuemon.Core.dll
Extract(Exception, string, string, Uri)
Converts the specified exception to a developer friendly ExceptionDescriptor.
public static ExceptionDescriptor Extract(Exception exception, string code = "UnhandledException", string message = "An unhandled exception occurred.", Uri helpLink = null)
Parameters
exceptionExceptionThe Exception to convert.
codestringThe error code that uniquely identifies the type of failure. Default is "UnhandledException".
messagestringThe message that explains the reason for the failure. Default is "An unhandled exception occurred.".
helpLinkUriThe optional link to a help page associated with this failure.
Returns
- ExceptionDescriptor
An ExceptionDescriptor initialized with the provided arguments, and (if embedded) enriched with insights of the
exception.
Remarks
Any meta data embedded by Embed<T>(T, object[], SystemSnapshots) will be extracted and added as evidence to the final result.