Implemented checking for a specific exception. Closes #1.