📄 transformerexception.html
字号:
getException</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> <B>getException</B>()</PRE><DL><DD>This method retrieves an exception that this exception wraps.<P><DD><DL><DT><B>Returns:</B><DD>An Throwable object, or null.<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/transform/TransformerException.html#getCause()"><CODE>getCause()</CODE></A></DL></DD></DL><HR><A NAME="getCause()"><!-- --></A><H3>getCause</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> <B>getCause</B>()</PRE><DL><DD>Returns the cause of this throwable or <code>null</code> if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)<P><DD><DL></DL></DD></DL><HR><A NAME="initCause(java.lang.Throwable)"><!-- --></A><H3>initCause</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> <B>initCause</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A> cause)</PRE><DL><DD>Initializes the <i>cause</i> of this throwable to the specified value. (The cause is the throwable that caused this throwable to get thrown.) <p>This method can be called at most once. It is generally called from within the constructor, or immediately after creating the throwable. If this throwable was created with <A HREF="../../../javax/xml/transform/TransformerException.html#TransformerException(java.lang.Throwable)"><CODE>TransformerException(Throwable)</CODE></A> or <A HREF="../../../javax/xml/transform/TransformerException.html#TransformerException(java.lang.String, java.lang.Throwable)"><CODE>TransformerException(String,Throwable)</CODE></A>, this method cannot be called even once.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cause</CODE> - the cause (which is saved for later retrieval by the <A HREF="../../../javax/xml/transform/TransformerException.html#getCause()"><CODE>getCause()</CODE></A> method). (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)<DT><B>Returns:</B><DD>a reference to this <code>Throwable</code> instance.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <code>cause</code> is this throwable. (A throwable cannot be its own cause.)<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if this throwable was created with <A HREF="../../../javax/xml/transform/TransformerException.html#TransformerException(java.lang.Throwable)"><CODE>TransformerException(Throwable)</CODE></A> or <A HREF="../../../javax/xml/transform/TransformerException.html#TransformerException(java.lang.String, java.lang.Throwable)"><CODE>TransformerException(String,Throwable)</CODE></A>, or this method has already been called on this throwable.</DL></DD></DL><HR><A NAME="getMessageAndLocation()"><!-- --></A><H3>getMessageAndLocation</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getMessageAndLocation</B>()</PRE><DL><DD>Get the error message with location information appended.<P><DD><DL><DT><B>Returns:</B><DD>A <code>String</code> representing the error message with location information appended.</DL></DD></DL><HR><A NAME="getLocationAsString()"><!-- --></A><H3>getLocationAsString</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getLocationAsString</B>()</PRE><DL><DD>Get the location information as a string.<P><DD><DL><DT><B>Returns:</B><DD>A string with location info, or null if there is no location information.</DL></DD></DL><HR><A NAME="printStackTrace()"><!-- --></A><H3>printStackTrace</H3><PRE>public void <B>printStackTrace</B>()</PRE><DL><DD>Print the the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object.<P><DD><DL></DL></DD></DL><HR><A NAME="printStackTrace(java.io.PrintStream)"><!-- --></A><H3>printStackTrace</H3><PRE>public void <B>printStackTrace</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/PrintStream.html" title="class or interface in java.io">PrintStream</A> s)</PRE><DL><DD>Print the the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - The stream where the dump will be sent to.</DL></DD></DL><HR><A NAME="printStackTrace(java.io.PrintWriter)"><!-- --></A><H3>printStackTrace</H3><PRE>public void <B>printStackTrace</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/PrintWriter.html" title="class or interface in java.io">PrintWriter</A> s)</PRE><DL><DD>Print the the trace of methods from where the error originated. This will trace all nested exception objects, as well as this object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - The writer where the dump will be sent to.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/xml/transform/TransformerConfigurationException.html" title="class in javax.xml.transform"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="TransformerException.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -