use throw with error class. fix bug when memcpyDefault resolved to D2D copy. [ROCm/clr commit: ac272932f6]
ac272932f6