Add macros for initializing errors and exceptions