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
exceptionMessagestringThe exception message to check.
Returns
- bool
trueif the exception message is non-null; otherwise,false.