Just ask Nick Trupiano, said he was warming up his car in the freezing cold outside his Roseville, Michigan, home earlier this week when he says he was ticketed by police for $128 as the vehicle sat in the driveway.

Trupiano claims he had no idea there was a law about idling.

“I had no knowledge of it and it seems like others had no knowledge of it either,” he told Inside Edition.

Trupiano, upset with the fine, posted the ticket on Facebook Tuesday where it gained national attention and has been shared more than 13,000 times.

“Let's all take a moment to thank the officer... for wasting the taxpayer's money and giving me a ticket for warming up my car in my own damn driveway,” he wrote.

"I was really upset, I was astonished," He told Inside Edition. "I came out to a ticket on my car for just warming up my car."

Police say issuing tickets for idling cars is meant to stop thieves. In some parts of the country it is illegal to leave a car idling.

"Most of these idiots take off at a high rate of speed and you are putting the public at risk," Roseville Police Chief James Berlin told Inside Edition. "It's purely a public safety issue."

According to Fox 2 Detroit, the ticket issued to Trupiano lists the ordinance as 99006, but there is no decree in the city of Roseville, where the ticket was issued, or in the state of Michigan that matches the number listed on the citation.

It also lists ordinance 895 under the description of offenses saying: “VEH/MOTOR ON UNATTENDED 895,” which is a rule pertaining to "rodent control," according to the city of Roseville's website.

A message left with the Roseville Police Department by InsideEdition.com has not yet been returned.

Such a violation does not exist in Michigan on the state level, according to Michigan State Police.

"There is no state law that prohibits anyone from warming up their vehicle in their own driveway or idling in their own driveway," Lori Dougovito of the Michigan State Police Public Affairs division, told InsideEdition.com.

Trupiano is due in court on January 26 at the District Court in Roseville, the town where he lives.