added custom exception for the try/catch exceptions