a. Explain about exception? When do they occur? Show using an example how to give your own exception handler.
b. Can you restrict the types of exception that a function can throw? Can you also stop that function from throwing any exceptions whatsoever? Describe the concept giving a small C++ routine.