ErrorMessageGeneratorGenerateErrorMessage Method

Generates error message with clear structure

Definition

Namespace: FileHold.Common
Assembly: FileHold.Common (in FileHold.Common.dll) Version: 17.2.0.0
C#
public static string GenerateErrorMessage(
	Exception ex,
	bool withDecorations,
	bool forEnterpriseLib,
	string message = null
)

Parameters

ex  Exception
withDecorations  Boolean
true if the split line is needed; otherwise false
forEnterpriseLib  Boolean
true if the message will be logged via EnterpriseLibrary
message  String  (Optional)
optional message

Return Value

String

See Also