Did you happen to notice if the cooling-fan was running at the time? If it wasn't, I'd say it overheated (due to either fan-motor failure, or [more likely] the radiator fanswitch failed-open).
That, or (if you've recently changed/added coolant) there's an air-bubble in the cooling-system, and the engine overheated due to low-coolant/low-coolant-flow.
Even a new part (like a radiator fanswitch) can fail on occasion.
Try this: locate the fanswitch in the radiator (no idea what side it's located on this particular bike). Start and warm the bike, (watching the temp gauge) and see if the fan kicks-on. If not, remove the wire from the switch and ground it against the frame (single wire). If the fan runs, it's the switch.
Should be covered under warranty.