ac272932f6
use throw with error class. fix bug when memcpyDefault resolved to D2D copy.
use throw with error class. fix bug when memcpyDefault resolved to D2D copy.