Java - getMessage() returns null
<p>I'm trying to catch an exception then display it in a JTextArea but I am getting null...</p>

<p>Here it is:</p>

<pre><code>} catch (Exception rwe) {
                  // System.exit(0);
                  game.remove(yPanel);
                  game.remove(xPanel);
                  game.remove(roomPanel);
                  game.remove(userPanel);
                  game.remove(titlePanel);
                  game.remove(introPanel);
                  remove(game);
                  remove(sp);
                  remove(invOne);
                  remove(main);
                  remove(say);
                  add(statusPanel);
                  JTextArea errorText = new JTextArea();
                  errorText.append("Here is the reason why it crashed:\n" +rwe.getMessage());
                  errorText.setPreferredSize(new Dimension(500,300));
                  System.out.println("errorrr:" + rwe.getMessage());
                  statusPanel.add(errorText);

            statusPanel.setOpaque(true);
            labelStatus.setVisible(true);
                  System.out.println("Server crashed");
                  c.append("\nServer crashed...");
                  rwe.printStackTrace();
            }
</code></pre>

<p>and when an error happens I get this inside the JTextArea:</p>

<pre><code>Here is the reason why it crashed:
null
</code></pre>

<p>Why?</p>
