C# Class Bloom.NonFatalProblem

Provides a way to note a problem in the log and, depending on channel, notify the user.
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Methods

Method Description
Report ( ModalIf modalThreshold, PassiveIf passiveThreshold, string shortUserLevelMessage = null, string moreDetails = null, Exception exception = null ) : void

Always log, possibly inform the user, possibly throw the exception

Private Methods

Method Description
Matches ( ModalIf threshold ) : IEnumerable
ShowToast ( string shortUserLevelMessage, Exception exception, string fullDetailedMessage ) : void

Method Details

Report() public static method

Always log, possibly inform the user, possibly throw the exception
public static Report ( ModalIf modalThreshold, PassiveIf passiveThreshold, string shortUserLevelMessage = null, string moreDetails = null, Exception exception = null ) : void
modalThreshold ModalIf Will show a modal dialog if the channel is this or lower
passiveThreshold PassiveIf Ignored for now
shortUserLevelMessage string Simple message that fits in small toast notification
moreDetails string Info adds information about the problem, which we get if they report the problem
exception System.Exception
return void