Could you please explain to me what the difference is between an error and an exception?
If no exception handler for a given exception is present, the program stops executing with an error message.
Unhandled Exceptions are Errors. So All Errors are Exceptions but the reverse is not true. Exception Handlings technique handles the Exception/Unexpected Situations(Errors), While errors are Situations which we havenot expected to occur so explicitly we have to take care of them by redirectly the User(s) to some static HTML Page & capturing it into Logs & come up with a Solution for the Error occured.
Errors Can Occur at 2 Levels
Compilation CustomError ... CustomError error.... error Compilation Note- Page Level Error handling overrides the Application Level Error Handling.
Exception Handling:->
Locally (Method Level)
Will Link-> http://msdn.microsoft.com/en-us/library/ms173160(v=vs.80).aspx