BUG: 'temp' used in exception message after delete

The variable 'temp' was used in the exception message
after it was deleted.  This patch generates the
message, deletes 'temp', and then throws the exception
with the message.

Change-Id: Ic95b612690667277dfd134a6018316eabce626d0
Merge topic 'OrderDeleteException'

89bb5d7 BUG: 'temp' used in exception message after delete