It's a kernel panic. The message you saw ("You need to restart your computer...") is Apple's way of not scaring the user, which 10.1 and earlier did with the text on the screen.
The usual applies: disconnect peripherals, look at recently installed software, run fsck, etc.