Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Errors are a fact of life. Even the most perfect programmer has code that creates run-time errors at times. This chapter is about handling such cases.
You’ll commonly encounter two kinds of errors: compile-time errors and run-time errors. Compile-time errors are those raised by the compiler, and you have to fix those before you continue with your program. Run-time errors happen at run-time, even though your code compiled fine. Run-time errors are commonly called exceptions.