jaxrexception.html

来自「j2ee api,很好的api。我这现在有」· HTML 代码 · 共 561 行 · 第 1/2 页

HTML
561
字号
</TABLE><A NAME="cause"><!-- --></A><H3>cause</H3><PRE>protected <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>cause</B></PRE><DL><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="JAXRException()"><!-- --></A><H3>JAXRException</H3><PRE>public <B>JAXRException</B>()</PRE><DL><DD>Constructs a <code>JAXRException</code> object with no reason or embedded Throwable.<P></DL><HR><A NAME="JAXRException(java.lang.String)"><!-- --></A><H3>JAXRException</H3><PRE>public <B>JAXRException</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;reason)</PRE><DL><DD>Constructs a <code>JAXRException</code> object with the given <code>String</code> as the reason for the exception being thrown.<P><DT><B>Parameters:</B><DD><CODE>reason</CODE> - a description of what caused the exception</DL><HR><A NAME="JAXRException(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>JAXRException</H3><PRE>public <B>JAXRException</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;reason,                     <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Throwable.html" title="class or interface in java.lang">Throwable</A>&nbsp;cause)</PRE><DL><DD>Constructs a <code>JAXRException</code> object with the given <code>String</code> as the reason for the exception being thrown and the given <code>Throwable</code> object as an embedded Throwable.<P><DT><B>Parameters:</B><DD><CODE>reason</CODE> - a description of what caused the exception<DD><CODE>cause</CODE> - a <code>Throwable</code> object that is to        be embedded in this <code>JAXRException</code> object</DL><HR><A NAME="JAXRException(java.lang.Throwable)"><!-- --></A><H3>JAXRException</H3><PRE>public <B>JAXRException</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>&nbsp;cause)</PRE><DL><DD>Constructs a <code>JAXRException</code> object initialized with the given <code>Throwable</code> object.<P><DT><B>Parameters:</B><DD><CODE>cause</CODE> - the Throwable that caused this Exception</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getMessage()"><!-- --></A><H3>getMessage</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>getMessage</B>()</PRE><DL><DD>Returns the detail message for this <code>JAXRException</code> object. <P> If there is an embedded Throwable, and if the  <code>JAXRException</code> object has no detail message of its  own, this method will return the detail message from the embedded  Throwable.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the error or warning message for this          <code>JAXRException</code> or, if it has none, the          message of the embedded Throwable, if there is one</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 Throwable embedded in this <code>JAXRException</code> if there is one. Otherwise, this method returns <code>null</code>.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the embedded Throwable or <code>null</code> if there is         none</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>&nbsp;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/registry/JAXRException.html#JAXRException(java.lang.Throwable)"><CODE>JAXRException(Throwable)</CODE></A> or <A HREF="../../../javax/xml/registry/JAXRException.html#JAXRException(java.lang.String, java.lang.Throwable)"><CODE>JAXRException(String,Throwable)</CODE></A>, this method cannot be  called even once.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>cause</CODE> - the cause (which is saved for later retrieval by the         <A HREF="../../../javax/xml/registry/JAXRException.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/registry/JAXRException.html#JAXRException(java.lang.Throwable)"><CODE>JAXRException(Throwable)</CODE></A> or         <A HREF="../../../javax/xml/registry/JAXRException.html#JAXRException(java.lang.String, java.lang.Throwable)"><CODE>JAXRException(String,Throwable)</CODE></A>, or this  method has already been called on this throwable.</DL></DD></DL><HR><A NAME="getRequestId()"><!-- --></A><H3>getRequestId</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>getRequestId</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/xml/registry/JAXRResponse.html" title="interface in javax.xml.registry">JAXRResponse</A></CODE></B></DD><DD>Returns the unique id for the request that generated this response. <p><DL><DT><B>Capability Level: 0 </B></DL><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/xml/registry/JAXRResponse.html#getRequestId()">getRequestId</A></CODE> in interface <CODE><A HREF="../../../javax/xml/registry/JAXRResponse.html" title="interface in javax.xml.registry">JAXRResponse</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the request id</DL></DD></DL><HR><A NAME="getStatus()"><!-- --></A><H3>getStatus</H3><PRE>public int <B>getStatus</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/xml/registry/JAXRResponse.html" title="interface in javax.xml.registry">JAXRResponse</A></CODE></B></DD><DD>Returns the status for this response. <p><DL><DT><B>Capability Level: 0 </B></DL><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/xml/registry/JAXRResponse.html#getStatus()">getStatus</A></CODE> in interface <CODE><A HREF="../../../javax/xml/registry/JAXRResponse.html" title="interface in javax.xml.registry">JAXRResponse</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the status which is an integer enumerated value<DT><B>See Also:</B><DD><A HREF="../../../javax/xml/registry/JAXRResponse.html#STATUS_SUCCESS"><CODE>JAXRResponse.STATUS_SUCCESS</CODE></A></DL></DD></DL><HR><A NAME="isAvailable()"><!-- --></A><H3>isAvailable</H3><PRE>public boolean <B>isAvailable</B>()                    throws <A HREF="../../../javax/xml/registry/JAXRException.html" title="class in javax.xml.registry">JAXRException</A></PRE><DL><DD>Returns true if a response is available, false otherwise. This is a polling method and must not block.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/xml/registry/JAXRResponse.html#isAvailable()">isAvailable</A></CODE> in interface <CODE><A HREF="../../../javax/xml/registry/JAXRResponse.html" title="interface in javax.xml.registry">JAXRResponse</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the response is available; <code>false</code> otherwise<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/registry/JAXRException.html" title="class in javax.xml.registry">JAXRException</A></CODE> - If the JAXR provider encounters an internal error</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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">&nbsp;<A HREF="../../../javax/xml/registry/InvalidRequestException.html" title="class in javax.xml.registry"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/xml/registry/RegistryException.html" title="class in javax.xml.registry"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="JAXRException.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + =
减小字号Ctrl + -
显示快捷键?