creating a blank custom exception class and removing a tiny bit of duplicated code