📄 exception.html
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/net/MalformedURLException.html">MalformedURLException</A></B></CODE><BR> Thrown to indicate that a malformed URL has occurred.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/net/NoRouteToHostException.html">NoRouteToHostException</A></B></CODE><BR> Signals that an error occurred while attempting to connect a socket to a remote address and port.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/net/ProtocolException.html">ProtocolException</A></B></CODE><BR> Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/net/SocketException.html">SocketException</A></B></CODE><BR> Thrown to indicate that there is an error in the underlying protocol, such as a TCP error.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/net/UnknownHostException.html">UnknownHostException</A></B></CODE><BR> Thrown to indicate that the IP address of a host could not be determined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/net/UnknownServiceException.html">UnknownServiceException</A></B></CODE><BR> Thrown to indicate that an unknown service exception has occurred.</TD></TR></TABLE> <P><A NAME="java.rmi"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/lang/Exception.html">Exception</A> in <A HREF="../../../java/rmi/package-summary.html">java.rmi</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Subclasses of <A HREF="../../../java/lang/Exception.html">Exception</A> in <A HREF="../../../java/rmi/package-summary.html">java.rmi</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/AccessException.html">AccessException</A></B></CODE><BR> An <code>AccessException</code> is thrown by certain methods of the <code>java.rmi.Naming</code> class (specifically <code>bind</code>, <code>rebind</code>, and <code>unbind</code>) and methods of the <code>java.rmi.activation.ActivationSystem</code> interface to indicate that the caller does not have permission to perform the action requested by the method call.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/AlreadyBoundException.html">AlreadyBoundException</A></B></CODE><BR> An <code>AlreadyBoundException</code> is thrown if an attempt is made to bind an object in the registry to a name that already has an associated binding.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/ConnectException.html">ConnectException</A></B></CODE><BR> A <code>ConnectException</code> is thrown if a connection is refused to the remote host for a remote method call.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/ConnectIOException.html">ConnectIOException</A></B></CODE><BR> A <code>ConnectIOException</code> is thrown if an <code>IOException</code> occurs while making a connection to the remote host for a remote method call.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/MarshalException.html">MarshalException</A></B></CODE><BR> A <code>MarshalException</code> is thrown if a <code>java.io.IOException</code> occurs while marshalling the remote call header, arguments or return value for a remote method call.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/NoSuchObjectException.html">NoSuchObjectException</A></B></CODE><BR> A <code>NoSuchObjectException</code> is thrown if an attempt is made to invoke a method on an object that no longer exists in the remote virtual machine.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/NotBoundException.html">NotBoundException</A></B></CODE><BR> A <code>NotBoundException</code> is thrown if an attempt is made to lookup or unbind in the registry a name that has no associated binding.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></B></CODE><BR> A <code>RemoteException</code> is the common superclass for a number of communication-related exceptions that may occur during the execution of a remote method call.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/RMISecurityException.html">RMISecurityException</A></B></CODE><BR> <B>Deprecated.</B> <I>no replacement. <code>RMISecurityManager</code> no longer throws this subclass of <code>java.lang.SecurityException</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/ServerError.html">ServerError</A></B></CODE><BR> A <code>ServerError</code> is thrown as a result of a remote method call if the execution of the remote method on the server machine throws a <code>java.lang.Error</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/ServerException.html">ServerException</A></B></CODE><BR> A <code>ServerException</code> is thrown as a result of a remote method call if the execution of the remote method on the server machine throws a <code>RemoteException</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/ServerRuntimeException.html">ServerRuntimeException</A></B></CODE><BR> <B>Deprecated.</B> <I>no replacement</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/StubNotFoundException.html">StubNotFoundException</A></B></CODE><BR> A <code>StubNotFoundException</code> is thrown if a valid stub class could not be found for a remote object when it is exported.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/UnexpectedException.html">UnexpectedException</A></B></CODE><BR> An <code>UnexpectedException</code> is thrown if the client of a remote method call receives, as a result of the call, a checked exception that is not among the checked exception types declared in the <code>throws</code> clause of the method in the remote interface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/UnmarshalException.html">UnmarshalException</A></B></CODE><BR> An <code>UnmarshalException</code> can be thrown while unmarshalling the parameters or results of a remote method call if any of the following conditions occur: if an exception occurs while unmarshalling the call header if the protocol for the return value is invalid if a <code>java.io.IOException</code> occurs unmarshalling parameters (on the server side) or the return value (on the client side).</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors in <A HREF="../../../java/rmi/package-summary.html">java.rmi</A> with parameters of type <A HREF="../../../java/lang/Exception.html">Exception</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/rmi/ConnectException.html#ConnectException(java.lang.String, java.lang.Exception)">ConnectException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s, <A HREF="../../../java/lang/Exception.html">Exception</A> ex)</CODE><BR> Constructs a <code>ConnectException</code> with the specified detail message and nested exception.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/rmi/ConnectIOException.html#ConnectIOException(java.lang.String, java.lang.Exception)">ConnectIOException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s, <A HREF="../../../java/lang/Exception.html">Exception</A> ex)</CODE><BR> Constructs a <code>ConnectIOException</code> with the specified detail message and nested exception.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/rmi/UnmarshalException.html#UnmarshalException(java.lang.String, java.lang.Exception)">UnmarshalException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s, <A HREF="../../../java/lang/Exception.html">Exception</A> ex)</CODE><BR> Constructs an <code>UnmarshalException</code> with the specified detail message and nested exception.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/rmi/UnexpectedException.html#UnexpectedException(java.lang.String, java.lang.Exception)">UnexpectedException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s, <A HREF="../../../java/lang/Exception.html">Exception</A> ex)</CODE><BR> Constructs a <code>UnexpectedException</code> with the specified detail message and nested exception.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/rmi/AccessException.html#AccessException(java.lang.String, java.lang.Exception)">AccessException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s, <A HREF="../../../java/lang/Exception.html">Exception</A> ex)</CODE><BR> Constructs an <code>AccessException</code> with the specified detail message and nested exception.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/rmi/ServerException.html#ServerException(java.lang.String, java.lang.Exception)">ServerException</A></B>(<A HREF="../../../java/lang/String.html">String</A> s, <A HREF="../../../java/lang/Exception.html">Exception</A> ex)</CODE><BR> Constructs a <
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -