[WFCORE-189] Provide a proper detail message when creating an OFE

It might not be very important, but why the changed type of exception?