Throw more meaningful exceptions