Static
addAdds a listener for errors
Function that will be called when an error occurs
Static
clearClear all stored errors
Static
formatHelper function to format error messages from native errors
Error to format
Formatted error message
Static
getGet error statistics
Static
getRetrieves the last N errors
Number of errors to retrieve
List of most recent errors
Static
handleHandles a raw error by converting it to ShogunError
Error type
Error code
Error message
Optional
originalError: unknownOriginal error
Log level for the error
Static
handleHandles errors and throws them as standardized ShogunError objects
Error type
Error code
Error message
Optional
originalError: unknownOriginal error
Static
handleHandles an error by logging it and notifying listeners
The error to handle
Private
Static
notifyStatic
removeRemoves an error listener
Function to remove
Static
with
Centralized error handler