draft of compiler error handling mechanism