onSuppressedException method
Handle a suppressed exception.
This method logs a warning message if the logger is enabled.
ex: The exception to handle
Example:
registry.onSuppressedException(Exception('Suppressed exception'));
Implementation
@protected
void onSuppressedException(Exception ex) {
if(_logger.getIsWarnEnabled()) {
_logger.add(LogLevel.WARN, 'Suppressed exception: $ex');
}
}