Move CompilerException from api to core