ExceptionManager - WEKIT-ECS/MIRAGE-XR GitHub Wiki
ExceptionManager: publishes global notification of exceptions to Sentry.io
The ExceptionManager class registers in Awake() a hook to method LogCaughtException for Application.logMessageReceived, capturing error exceptions (including Null Reference, Divide by Zero, Out of Memory, Index Out of Range):
Application.logMessageReceived += LogCaughtException;
It uses the Sentry Unity SDK to notify the online performance monitoring tool Sentry.io to log the error that appeared, so as to inform the development team:
SentrySdk.CaptureMessage("ExceptionManager: ["+logType+"]" + logText + ", trace: " + stackTrace);
The ExceptionManager is attached to the RootView gameobject and initialised in the RootView_v2 class.
The AuthorizationManager adds user details for logging once the user is logged in.