Throwing exceptions from code instead of printing warnings.