The code snippet below validates a given name by checking if it is empty. It is encapsulated within a try-except block and prints "Some error occurred" when it catches an exception.
Your task is to create a custom exception of type EmptyNameError
. Raise this exception if the name is empty.
You should also capture this exception separately if it is raised and print "Please enter a valid name in the input".