check type of emitted exception