Private StaticerrorsPrivate StaticexternalPrivate StaticlistenersPrivate StaticmaxStaticaddAdds a listener for errors
Function that will be called when an error occurs
StaticclearClear all stored errors
StaticformatHelper function to format error messages from native errors
Error to format
Formatted error message
StaticgetRetrieves the last N errors
Number of errors to retrieve
List of most recent errors
StatichandleHandles a raw error by converting it to ShogunError
Error type
Error code
Error message
OptionaloriginalError: unknownOriginal error
Log level for the error
StatichandleHandles errors and throws them as standardized ShogunError objects
Error type
Error code
Error message
OptionaloriginalError: unknownOriginal error
StatichandleHandles an error by logging it and notifying listeners
The error to handle
Private StaticnotifyStaticremoveRemoves an error listener
Function to remove
StaticsetSet an external logging service for production error monitoring
External logger function to send errors to a monitoring service
Staticwith
Centralized error handler