throw exception if no methods object