MichaCo / CacheManager

CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.
http://cachemanager.michaco.net
Apache License 2.0
2.33k stars 458 forks source link

Add Rethrow() method and use in BaseCacheManager #307

Open ndrwrbgs opened 4 years ago

ndrwrbgs commented 4 years ago

Fixes #303

A little less "standard" than a wrapping exception, but satisfies the requirements without functional change beyond the stack trace. Does lose the stack trace of BaseCacheManager:L130, instead doing the Logger.LogError and then claiming to have broken control straight from wherever the exception was thrown to the outer exception handler.

Option 2 - alternative to #306