Add decorators in swf.exceptions and use them in swf.models

- Parametrized decorators with a single responsibility.
- Fix the unit tests.
- Fix the doctests.
- Wrap methods that may raise unknown resource errors.