Will be useful to be able to retrieve the original Error and StackTrace to use them with logging libraries like logger, especially the StackTrace is helpful.
Something like this
logError: (message, error, stackTrace) {
logger.e(message, error, stackTrace);
},