blob: 49a7260ade9e93cfbabee2bc20ce1713282247d7 [file]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<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.gif" alt="Related concepts" width="159" height="27"><br>
<a href="../concepts/concepts-7.htm">Java editor</a>
</p>
<p>
<img border="0" src="../images/ngrelt.gif" alt="Related tasks" width="159" height="27"><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>
<p>
<a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" width="324" height=
"14"></a>
</p>
</body>
</html>