UCTK: added DTR macros to throw exceptions.