Table of Contents

Class MayExcHelper

Namespace
SunamoResult
Assembly
SunamoResult.dll

Helper class for checking and logging exception messages from ResultWithException<T>.

public class MayExcHelper
Inheritance
MayExcHelper
Inherited Members
Extension Methods

Methods

HasException(string?)

Checks if the exception message is non-null, logs it to console if present, and returns whether an exception occurred.

public static bool HasException(string? exceptionMessage)

Parameters

exceptionMessage string

The exception message to check.

Returns

bool

true if the exception message is non-null; otherwise, false.