changing mother type of custom exceptions