Explicitly check throwm exception type

Refs #1398