| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| <title> |
| Viewing runtime exceptions |
| </title> |
| </head> |
| <body> |
| <h1> |
| Viewing runtime exceptions |
| </h1> |
| <p> |
| If an expression you evaluate causes a runtime exception, the exception will be reported in the editor. For example: |
| </p> |
| <p> |
| Type and select the expression <code>Object x = null; x.toString()</code> in the editor and click <strong>Display</strong> in the toolbar. |
| </p> |
| <p> |
| The error message: |
| </p> |
| <p> |
| <em>An exception occurred during evaluation: java.lang.NullPointerException</em> |
| </p> |
| <p> |
| will be displayed in the editor. |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelc.png" alt="Related concepts" ><br> |
| <a href="../concepts/concepts-7.htm">Java editor</a> |
| </p> |
| <p> |
| <img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br> |
| <a href="../tasks/tasks-151.htm">Displaying the result of evaluating an expression</a><br> |
| <a href="../tasks/tasks-150.htm">Inspecting the result of evaluating an expression</a><br> |
| <a href="../tasks/tasks-152.htm">Executing an expression</a> |
| </p> |
| |
| </body> |
| </html> |
| |