introduced a basic errors handling mechanism to check the builtin functions arguments types