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