olabayo-balogun / exceptionsdemo Goto Github PK
View Code? Open in Web Editor NEWException handing demo which illustrates how to create an exception and where to create it. Note that the code in this demo is written to fail in order to generate the exception. If you want the code to run change the position parameter to a number between 0 and 3 which is the array length that it is fetching from.