added custom exception with try/catch exception; incomplete: error message in browser relating to the try/catch