blob: 226b31095e8b37ffd00f48a23304cc5271db39be [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. 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/concept-java-editor.htm">Java editor</a>
</p>
<p>
<img border="0" src="../images/ngrelt.png" alt="Related tasks" ><br>
<a href="task-display_evaluation_result.htm">Displaying the result of evaluating an expression</a><br>
<a href="task-inspect_evaluation_result.htm">Inspecting the result of evaluating an expression</a><br>
<a href="task-executing_an_expression.htm">Executing an expression</a>
</p>
</body>
</html>