Question: what is the difference between error bug and exception?
Answer: A bug is an error in the code that produces an incorrect result - which may or may not raise an exception. ... This would be a bug but doesn't raise an exception. You build a file name, but get the path wrong which causes a "file not found" exception. This could be bug, but would raise an exception.