Throw more informative exception