Not sure a custom exception class is needed. It seems to me that you actually want a standard ValueError (i.e. the user specified incorrect values for bounds).