ExceptionExtensions¶
Formats an exception and its full InnerException chain for display or for a delimited application error log. (BR-049) through BR-052
Purpose¶
- Formats an exception and its full
InnerExceptionchain for display or for a delimited application error log. (BR-049) through BR-052
Context¶
- Namespace:
SAIF.Common.Extensions - Assembly/package:
SAIF.Framework.Common
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| ErrorLogMessageString | public const string ErrorLogMessageString = "@#ELOG#@" |
Delimiter token inserted between chained exception messages in the error-log format. |
| GetFullFormattedException(this Exception exception, bool includeStackTrace) | public static string GetFullFormattedException(this Exception exception, bool includeStackTrace) |
Renders the exception and every inner exception's message (and optionally stack trace) as a single human-readable block. (BR-049, BR-050, BR-051) |
| GetErrorLogFormattedException(this Exception exception) | public static string GetErrorLogFormattedException(this Exception exception) |
Renders the exception chain using ErrorLogMessageString as the delimiter, suited to single-line log ingestion. (BR-052) |
Sources¶
Common/SAIF.Common/Extensions/ExceptionExtensions.cs