transformerexception.html
来自「SUN公司官方J2EE中文帮助文档 应该不错 有兴趣的下来看看 html格式的」· HTML 代码 · 共 532 行 · 第 1/2 页
HTML
532 行
<A NAME="TransformerException(java.lang.String)"><!-- --></A><H3>
TransformerException</H3>
<PRE>
public <B>TransformerException</B>(java.lang.String message)</PRE>
<DL>
<DD>Create a new TransformerException.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The error or warning message.</DL>
</DD>
</DL>
<HR>
<A NAME="TransformerException(java.lang.Throwable)"><!-- --></A><H3>
TransformerException</H3>
<PRE>
public <B>TransformerException</B>(java.lang.Throwable e)</PRE>
<DL>
<DD>Create a new TransformerException wrapping an existing exception.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>e</CODE> - The exception to be wrapped.</DL>
</DD>
</DL>
<HR>
<A NAME="TransformerException(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>
TransformerException</H3>
<PRE>
public <B>TransformerException</B>(java.lang.String message,
java.lang.Throwable e)</PRE>
<DL>
<DD>Wrap an existing exception in a TransformerException.
<p>This is used for throwing processor exceptions before
the processing has started.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The error or warning message, or null to
use the message from the embedded exception.<DD><CODE>e</CODE> - Any exception</DL>
</DD>
</DL>
<HR>
<A NAME="TransformerException(java.lang.String, javax.xml.transform.SourceLocator)"><!-- --></A><H3>
TransformerException</H3>
<PRE>
public <B>TransformerException</B>(java.lang.String message,
<A HREF="../../../javax/xml/transform/SourceLocator.html">SourceLocator</A> locator)</PRE>
<DL>
<DD>Create a new TransformerException from a message and a Locator.
<p>This constructor is especially useful when an application is
creating its own exception from within a DocumentHandler
callback.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The error or warning message.<DD><CODE>locator</CODE> - The locator object for the error or warning.</DL>
</DD>
</DL>
<HR>
<A NAME="TransformerException(java.lang.String, javax.xml.transform.SourceLocator, java.lang.Throwable)"><!-- --></A><H3>
TransformerException</H3>
<PRE>
public <B>TransformerException</B>(java.lang.String message,
<A HREF="../../../javax/xml/transform/SourceLocator.html">SourceLocator</A> locator,
java.lang.Throwable e)</PRE>
<DL>
<DD>Wrap an existing exception in a TransformerException.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The error or warning message, or null to
use the message from the embedded exception.<DD><CODE>locator</CODE> - The locator object for the error or warning.<DD><CODE>e</CODE> - Any exception</DL>
</DD>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="getLocator()"><!-- --></A><H3>
getLocator</H3>
<PRE>
public <A HREF="../../../javax/xml/transform/SourceLocator.html">SourceLocator</A> <B>getLocator</B>()</PRE>
<DL>
<DD>Method getLocator retrieves an instance of a SourceLocator
object that specifies where an error occured.<DD><DL>
<DT><B>Returns:</B><DD>A SourceLocator object, or null if none was specified.</DL>
</DD>
</DL>
<HR>
<A NAME="setLocator(javax.xml.transform.SourceLocator)"><!-- --></A><H3>
setLocator</H3>
<PRE>
public void <B>setLocator</B>(<A HREF="../../../javax/xml/transform/SourceLocator.html">SourceLocator</A> location)</PRE>
<DL>
<DD>Method setLocator sets an instance of a SourceLocator
object that specifies where an error occured.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>location</CODE> - A SourceLocator object, or null to clear the location.</DL>
</DD>
</DL>
<HR>
<A NAME="getException()"><!-- --></A><H3>
getException</H3>
<PRE>
public java.lang.Throwable <B>getException</B>()</PRE>
<DL>
<DD>This method retrieves an exception that this exception wraps.<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 java.lang.Throwable <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.)</DL>
<HR>
<A NAME="initCause(java.lang.Throwable)"><!-- --></A><H3>
initCause</H3>
<PRE>
public java.lang.Throwable <B>initCause</B>(java.lang.Throwable 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.<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>java.lang.IllegalArgumentException</CODE> - if <code>cause</code> is this
throwable. (A throwable cannot
be its own cause.)<DD><CODE>java.lang.IllegalStateException</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 java.lang.String <B>getMessageAndLocation</B>()</PRE>
<DL>
<DD>Get the error message with location information
appended.<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 java.lang.String <B>getLocationAsString</B>()</PRE>
<DL>
<DD>Get the location information as a string.<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.<DD><DL>
<DT><B>Overrides:</B><DD><CODE>printStackTrace</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="printStackTrace(java.io.PrintStream)"><!-- --></A><H3>
printStackTrace</H3>
<PRE>
public void <B>printStackTrace</B>(java.io.PrintStream 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.<DD><DL>
<DT><B>Overrides:</B><DD><CODE>printStackTrace</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
</DD>
<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>(java.io.PrintWriter 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.<DD><DL>
<DT><B>Overrides:</B><DD><CODE>printStackTrace</CODE> in class <CODE>java.lang.Throwable</CODE></DL>
</DD>
<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 NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../javax/xml/transform/TransformerConfigurationException.html"><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></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | 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>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?