excpected exception taken in