Table of Contents

Method TryParse

Namespace
MailFathom.Domain.Failures
Assembly
MailFathom.Domain.dll

TryParse(int, out MailFathomErrorCode)

Parses a recorded five-digit code back into the value it names.

public static bool TryParse(int value, out MailFathomErrorCode errorCode)

Parameters

value int

The number read from a log, an alert, or a serialized error.

errorCode MailFathomErrorCode

The parsed code when the number is allocated; otherwise the unspecified default.

Returns

bool

true when the number is an allocated code; otherwise false.

Remarks

An unallocated number is not accepted, so a code retired or mistyped is recognized as unknown rather than reconstructed as a value nothing raises.