1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc (build 1.6.0) on Thu Mar 06 17:19:15 EST 2008 -->
10
<META NAME="date" CONTENT="2008-03-06">
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
14
<SCRIPT type="text/javascript">
15
function windowTitle()
17
if (location.href.indexOf('is-external=true') == -1) {
18
parent.document.title="RhinoException (Rhino)";
27
<BODY BGCOLOR="white" onload="windowTitle();">
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
<TR ALIGN="center" VALIGN="top">
40
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
41
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
42
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
43
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
44
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
45
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
46
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
50
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
56
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57
<A HREF="../../../org/mozilla/javascript/RefCallable.html" title="interface in org.mozilla.javascript"><B>PREV CLASS</B></A>
58
<A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript"><B>NEXT CLASS</B></A></FONT></TD>
59
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
60
<A HREF="../../../index.html?org/mozilla/javascript/RhinoException.html" target="_top"><B>FRAMES</B></A>
61
<A HREF="RhinoException.html" target="_top"><B>NO FRAMES</B></A>
62
<SCRIPT type="text/javascript">
65
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
70
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
77
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
79
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
83
<A NAME="skip-navbar_top"></A>
84
<!-- ========= END OF TOP NAVBAR ========= -->
87
<!-- ======== START OF CLASS DATA ======== -->
90
org.mozilla.javascript</FONT>
92
Class RhinoException</H2>
95
<IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.lang.Throwable
96
<IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.lang.Exception
97
<IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.lang.RuntimeException
98
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.mozilla.javascript.RhinoException</B>
101
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD>
104
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../org/mozilla/javascript/EcmaError.html" title="class in org.mozilla.javascript">EcmaError</A>, <A HREF="../../../org/mozilla/javascript/EvaluatorException.html" title="class in org.mozilla.javascript">EvaluatorException</A>, <A HREF="../../../org/mozilla/javascript/JavaScriptException.html" title="class in org.mozilla.javascript">JavaScriptException</A></DD>
108
<DT><PRE>public abstract class <B>RhinoException</B><DT>extends java.lang.RuntimeException</DL>
112
The class of exceptions thrown by the JavaScript engine.
117
<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#org.mozilla.javascript.RhinoException">Serialized Form</A></DL>
122
<!-- ========== METHOD SUMMARY =========== -->
124
<A NAME="method_summary"><!-- --></A>
125
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
126
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
127
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
128
<B>Method Summary</B></FONT></TH>
130
<TR BGCOLOR="white" CLASS="TableRowColor">
131
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
132
<CODE> int</CODE></FONT></TD>
133
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#columnNumber()">columnNumber</A></B>()</CODE>
136
The column number of the location of the error, or zero if unknown.</TD>
138
<TR BGCOLOR="white" CLASS="TableRowColor">
139
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140
<CODE> java.lang.String</CODE></FONT></TD>
141
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#details()">details</A></B>()</CODE>
144
</TD>
146
<TR BGCOLOR="white" CLASS="TableRowColor">
147
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148
<CODE> java.lang.String</CODE></FONT></TD>
149
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#getMessage()">getMessage</A></B>()</CODE>
152
</TD>
154
<TR BGCOLOR="white" CLASS="TableRowColor">
155
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156
<CODE> java.lang.String</CODE></FONT></TD>
157
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#getScriptStackTrace()">getScriptStackTrace</A></B>()</CODE>
160
Get a string representing the script stack of this exception.</TD>
162
<TR BGCOLOR="white" CLASS="TableRowColor">
163
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164
<CODE> java.lang.String</CODE></FONT></TD>
165
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#getScriptStackTrace(java.io.FilenameFilter)">getScriptStackTrace</A></B>(java.io.FilenameFilter filter)</CODE>
168
Get a string representing the script stack of this exception.</TD>
170
<TR BGCOLOR="white" CLASS="TableRowColor">
171
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172
<CODE> void</CODE></FONT></TD>
173
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#initColumnNumber(int)">initColumnNumber</A></B>(int columnNumber)</CODE>
176
Initialize the column number of the script statement causing the error.</TD>
178
<TR BGCOLOR="white" CLASS="TableRowColor">
179
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180
<CODE> void</CODE></FONT></TD>
181
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#initLineNumber(int)">initLineNumber</A></B>(int lineNumber)</CODE>
184
Initialize the line number of the script statement causing the error.</TD>
186
<TR BGCOLOR="white" CLASS="TableRowColor">
187
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188
<CODE> void</CODE></FONT></TD>
189
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#initLineSource(java.lang.String)">initLineSource</A></B>(java.lang.String lineSource)</CODE>
192
Initialize the text of the source line containing the error.</TD>
194
<TR BGCOLOR="white" CLASS="TableRowColor">
195
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
196
<CODE> void</CODE></FONT></TD>
197
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#initSourceName(java.lang.String)">initSourceName</A></B>(java.lang.String sourceName)</CODE>
200
Initialize the uri of the script source containing the error.</TD>
202
<TR BGCOLOR="white" CLASS="TableRowColor">
203
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
204
<CODE> int</CODE></FONT></TD>
205
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#lineNumber()">lineNumber</A></B>()</CODE>
208
Returns the line number of the statement causing the error,
209
or zero if not available.</TD>
211
<TR BGCOLOR="white" CLASS="TableRowColor">
212
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
213
<CODE> java.lang.String</CODE></FONT></TD>
214
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#lineSource()">lineSource</A></B>()</CODE>
217
The source text of the line causing the error, or null if unknown.</TD>
219
<TR BGCOLOR="white" CLASS="TableRowColor">
220
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221
<CODE> void</CODE></FONT></TD>
222
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#printStackTrace(java.io.PrintStream)">printStackTrace</A></B>(java.io.PrintStream s)</CODE>
225
</TD>
227
<TR BGCOLOR="white" CLASS="TableRowColor">
228
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
229
<CODE> void</CODE></FONT></TD>
230
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#printStackTrace(java.io.PrintWriter)">printStackTrace</A></B>(java.io.PrintWriter s)</CODE>
233
</TD>
235
<TR BGCOLOR="white" CLASS="TableRowColor">
236
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
237
<CODE> java.lang.String</CODE></FONT></TD>
238
<TD><CODE><B><A HREF="../../../org/mozilla/javascript/RhinoException.html#sourceName()">sourceName</A></B>()</CODE>
241
Get the uri of the script source containing the error, or null
242
if that information is not available.</TD>
245
<A NAME="methods_inherited_from_class_java.lang.Throwable"><!-- --></A>
246
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
247
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
248
<TH ALIGN="left"><B>Methods inherited from class java.lang.Throwable</B></TH>
250
<TR BGCOLOR="white" CLASS="TableRowColor">
251
<TD><CODE>fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString</CODE></TD>
254
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
255
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
256
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
257
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
259
<TR BGCOLOR="white" CLASS="TableRowColor">
260
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
266
<!-- ============ METHOD DETAIL ========== -->
268
<A NAME="method_detail"><!-- --></A>
269
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
270
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
271
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
272
<B>Method Detail</B></FONT></TH>
276
<A NAME="getMessage()"><!-- --></A><H3>
279
public final java.lang.String <B>getMessage</B>()</PRE>
282
<DT><B>Overrides:</B><DD><CODE>getMessage</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
290
<A NAME="details()"><!-- --></A><H3>
293
public java.lang.String <B>details</B>()</PRE>
301
<A NAME="sourceName()"><!-- --></A><H3>
304
public final java.lang.String <B>sourceName</B>()</PRE>
306
<DD>Get the uri of the script source containing the error, or null
307
if that information is not available.
315
<A NAME="initSourceName(java.lang.String)"><!-- --></A><H3>
318
public final void <B>initSourceName</B>(java.lang.String sourceName)</PRE>
320
<DD>Initialize the uri of the script source containing the error.
323
<DT><B>Parameters:</B><DD><CODE>sourceName</CODE> - the uri of the script source responsible for the error.
324
It should not be <tt>null</tt>.
326
<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is called more then once.</DL>
331
<A NAME="lineNumber()"><!-- --></A><H3>
334
public final int <B>lineNumber</B>()</PRE>
336
<DD>Returns the line number of the statement causing the error,
337
or zero if not available.
345
<A NAME="initLineNumber(int)"><!-- --></A><H3>
348
public final void <B>initLineNumber</B>(int lineNumber)</PRE>
350
<DD>Initialize the line number of the script statement causing the error.
353
<DT><B>Parameters:</B><DD><CODE>lineNumber</CODE> - the line number in the script source.
354
It should be positive number.
356
<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is called more then once.</DL>
361
<A NAME="columnNumber()"><!-- --></A><H3>
364
public final int <B>columnNumber</B>()</PRE>
366
<DD>The column number of the location of the error, or zero if unknown.
374
<A NAME="initColumnNumber(int)"><!-- --></A><H3>
375
initColumnNumber</H3>
377
public final void <B>initColumnNumber</B>(int columnNumber)</PRE>
379
<DD>Initialize the column number of the script statement causing the error.
382
<DT><B>Parameters:</B><DD><CODE>columnNumber</CODE> - the column number in the script source.
383
It should be positive number.
385
<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is called more then once.</DL>
390
<A NAME="lineSource()"><!-- --></A><H3>
393
public final java.lang.String <B>lineSource</B>()</PRE>
395
<DD>The source text of the line causing the error, or null if unknown.
403
<A NAME="initLineSource(java.lang.String)"><!-- --></A><H3>
406
public final void <B>initLineSource</B>(java.lang.String lineSource)</PRE>
408
<DD>Initialize the text of the source line containing the error.
411
<DT><B>Parameters:</B><DD><CODE>lineSource</CODE> - the text of the source line responsible for the error.
412
It should not be <tt>null</tt>.
414
<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is called more then once.</DL>
419
<A NAME="getScriptStackTrace()"><!-- --></A><H3>
420
getScriptStackTrace</H3>
422
public java.lang.String <B>getScriptStackTrace</B>()</PRE>
424
<DD>Get a string representing the script stack of this exception.
425
If optimization is enabled, this corresponds to all java stack elements
426
with a source name ending with ".js".
430
<DT><B>Returns:</B><DD>a script stack dump<DT><B>Since:</B></DT>
437
<A NAME="getScriptStackTrace(java.io.FilenameFilter)"><!-- --></A><H3>
438
getScriptStackTrace</H3>
440
public java.lang.String <B>getScriptStackTrace</B>(java.io.FilenameFilter filter)</PRE>
442
<DD>Get a string representing the script stack of this exception.
443
If optimization is enabled, this corresponds to all java stack elements
444
with a source name matching the <code>filter</code>.
447
<DT><B>Parameters:</B><DD><CODE>filter</CODE> - the file name filter to determine whether a file is a
449
<DT><B>Returns:</B><DD>a script stack dump<DT><B>Since:</B></DT>
456
<A NAME="printStackTrace(java.io.PrintWriter)"><!-- --></A><H3>
459
public void <B>printStackTrace</B>(java.io.PrintWriter s)</PRE>
462
<DT><B>Overrides:</B><DD><CODE>printStackTrace</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
470
<A NAME="printStackTrace(java.io.PrintStream)"><!-- --></A><H3>
473
public void <B>printStackTrace</B>(java.io.PrintStream s)</PRE>
476
<DT><B>Overrides:</B><DD><CODE>printStackTrace</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
482
<!-- ========= END OF CLASS DATA ========= -->
486
<!-- ======= START OF BOTTOM NAVBAR ====== -->
487
<A NAME="navbar_bottom"><!-- --></A>
488
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
489
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
491
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
492
<A NAME="navbar_bottom_firstrow"><!-- --></A>
493
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
494
<TR ALIGN="center" VALIGN="top">
495
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
496
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
497
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
498
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
499
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
500
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
501
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
505
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
511
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
512
<A HREF="../../../org/mozilla/javascript/RefCallable.html" title="interface in org.mozilla.javascript"><B>PREV CLASS</B></A>
513
<A HREF="../../../org/mozilla/javascript/Script.html" title="interface in org.mozilla.javascript"><B>NEXT CLASS</B></A></FONT></TD>
514
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
515
<A HREF="../../../index.html?org/mozilla/javascript/RhinoException.html" target="_top"><B>FRAMES</B></A>
516
<A HREF="RhinoException.html" target="_top"><B>NO FRAMES</B></A>
517
<SCRIPT type="text/javascript">
520
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
525
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
532
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
533
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
534
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
535
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
538
<A NAME="skip-navbar_bottom"></A>
539
<!-- ======== END OF BOTTOM NAVBAR ======= -->