creates an exception of type {1}, an exception type that should not be raised in this type of method. If this exception instance ...

{0} creates an exception of type {1}, an exception type that should not be raised in this type of method. If this exception instance might be raised, either use a different exception type or change this method's logic so that it no longer raises an exception.