Implement error handling
Add tests for error handling and precedence