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.156 -- Release Build+0ee1ff4fa6051658049999c7d44b912d38bbb151
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