I use a third-party library (Fluent NHibernate) that throws a file-free exception on startup when I start with “break on all Common Runtime Exceptions” enabled (menu “Debug | Exceptions ...”).
I understand that I could just remove the exception from a specific “file not found”, but then I would not get a break if this happened somewhere else in my code.
Is there a way (attribute pragma ??) to suppress the exception, but only in one place that I know will this happen?
source
share