Template:Computer Programming/Error Handling/1

Error handling techniques edit

This chapter describes various error handling techniques. First the technique is described, then its use is shown with an example function and a call to that function. We use the √ function which should report an error condition when called with a negative parameter.

Return code edit