Added possibility to throw specific exceptions at the adapter level for more descriptive errors (fixes #224)