LoggerSwallowException Method
Logs that a first chance exception was intentionally not handled for the provided reason.
In the LogFileViewer it will filter messages differently if it was indicated that they were swallowed.
Namespace: Gemstone.DiagnosticsAssembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.128 -- Release Build+d9d157c80da59365061f9bf4a5d1ecd0f0496e1b
public static void SwallowException(
Exception ex,
string? message = null,
string? details = null,
MessageFlags additionalFlags = MessageFlags.None
)
Public Shared Sub SwallowException (
ex As Exception,
Optional message As String = Nothing,
Optional details As String = Nothing,
Optional additionalFlags As MessageFlags = MessageFlags.None
)
public:
static void SwallowException(
Exception^ ex,
String^ message = nullptr,
String^ details = nullptr,
MessageFlags additionalFlags = MessageFlags::None
)
Gemstone.Diagnostics.Logger.SwallowException = function(ex, message, details, additionalFlags);
Parameters
- ex Exception
- the exception that was swallowed
- message String (Optional)
- message to include, such as a reason why it was swallowed.
- details String (Optional)
- additional details.
- additionalFlags MessageFlags (Optional)
- additional flags that can be set with this swallowed exception.