The idea is so surprisingly obvious that I can't believe no one suggested it yet.
Stack Overflow is a SE-based site for programmers, you know. And programming errors is the main reason why people come to ask a question. Yet there is no special markup code for the error message, and people are trying to format it either as a code or a citation while neither is really satisfying: for example, code formatting often makes one-line error message go off screen and citation is parsing all the markdown special characters, spoiling the text.
The most interesting part: Knowing the error message, the related questions mechanism can start offering relevant suggestions instead of that garbage it suggests at the moment based on the title which is "I am writing an android app".
With some effort on the developers' part (including some snoop-and-suggest technique and encouraging banners) this feature can dramatically improve the efficiency of this site.
Update.
An even better suggestion from Glorfindel in the comments - a special field in the question form. Remember - Stack Overflow is a very special SE site related to programming and thus having such a dedicated input field makes a lot of sense.
Paste your stack trace here
?