IFailureHandler Interface

Service to be invoked to handle technical exceptions that weren't accounted for or other issues. (Service outages, bugs in the code, etc. etc.) Not to be used for human-invoked issues that the code itself should handle!

Definition

Namespace: MobileTrack.Web.Components.Interfaces
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public interface IFailureHandler

Methods

HandleCosmosException Invoked when the Cosmos Database returns an exception
HandleGenericException To be invoked when generic exceptions are thrown. If this happens on production, it means there is an issue that must be resolved as soon as possible.
HandleUnauthorizedAccess To be invoked if a user somehow got access to methods they weren't supposed to have access to. This is a last resort, meaning something is wrong in the code and/or we're dealing with a hacking attempt.

See Also