I'm write code for a living and am trying to find the right word for a flaw in logic.  "Error" seems too vague, I'm looking specifically for a word that describes a flaw in logic.  

Addendum: This would be an unintended flaw in logic.