What is an Error?
When the system produces an outcome, which is not the expected one or a consequence of a particular action, operation, or course, is known as error.
Error or mistake leads to a defect and usually raises due to various reasons. It may be system specification issue or design issue or coding issue, which leads to a defect. Error leads to defects and if the defect uncovered by QA leads to Failure.