I am writing a python function that accepts certain parameters. I would like to make sure one of the parameter's value is a string of specific custom format. If it doesn't match the format I would like to raise an exception. Is it appropriate to raise one of the built-in exception and if yes which one?
I looked here: https://docs.python.org/3/library/exceptions.html# but couldn't pin down to a specific one.