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.163 -- Release Build+502f5bbbbb46bc004ae35a709996ed2bdf8065b6
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