Hi Nikhil,
We can raise an attribute error message for a Dropdown ui elements like we do for other ui elements. Please find the below snap shot, where the DropDownByKey ui element has been highlighted for an attribute related error message.
Hope this clears your doubts.
Regards,
Rama