Gemstone Diagnostics Library
Show/Hide TOC

# 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.

## Definition

Namespace: Gemstone.Diagnostics
Assembly: Gemstone.Diagnostics (in Gemstone.Diagnostics.dll) Version: 1.0.138 -- Release Build+6aeb4c3988b05c265b918fce2dee4202efa7e160
C#
View Source Request Example

    public static void SwallowException(
    	Exception ex,
    	string? message = null,
    	string? details = null,
    	MessageFlags additionalFlags = MessageFlags.None
    )

VB
View Source Request Example

    Public Shared Sub SwallowException (
    	ex As Exception,
    	Optional message As String = Nothing,
    	Optional details As String = Nothing,
    	Optional additionalFlags As MessageFlags = MessageFlags.None
    )

C++
View Source Request Example

    public:
    static void SwallowException(
    	Exception^ ex,
    	String^ message = nullptr,
    	String^ details = nullptr,
    	MessageFlags additionalFlags = MessageFlags::None
    )

JavaScript
View Source Request Example

    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.

## See Also

#### Reference

Logger Class
Gemstone.Diagnostics Namespace