Use a better validation for invalid attribute name, and use c.abort() to abort the compilation, instead of throwing an Exception.