And throw exception accordingly
And throw exception accordingly