Create macros for throwing exceptions