Verification of exception type.