Error handling for invalid cart params