<human>:  Manually raising (throwing) an exception
<bot>: Here is some code to throw an assertion error with message "Unexpected value of 'distance'!", distance

raise AssertionError("Unexpected value of 'distance'!", distance)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.