specify which exceptions to ignore in greater detail

Added possibility to ignore exceptions with greater precision by including a regex in the ignore_classes that is matched against the exception.message.

I needed this to ignore certain exceptions and let others through based on the content of exception.message.