站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java Remote Method Invocation Exceptions In RMI - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

CONTENTS | PREV | NEXT Java Remote Method Invocation


A.3 Exceptions or Errors During Return

Exception
Context

java.rmi.UnmarshalException

Corrupted stream leads to either an I/O or protocol error when:

  • Marshaling return header.
  • Checking return type.
  • Checking return code.
  • Unmarshaling return.
  • Return value class not found.

    java.rmi.UnexpectedException

    An exception not mentioned in the method signature occurred (excluding runtime exceptions). The UnexpectedException exception object contains the underlying exception that was thrown by the server.

    java.rmi.ServerError

    Any error that occurs while the server is executing a remote method. The ServerError exception object contains the underlying error that was thrown by the server,

    java.rmi.ServerException

    Any remote exception that occurs while the server is executing a remote method. For examples, see Section A.3.1, "Possible Causes of java.rmi.ServerException".

    java.rmi.ServerRuntimeException

    note: this exception is deprecated in JDK1.2

    This exception is not thrown by servers running JDK1.2 compatible versions. A RuntimeException are propagated to clients in tact.



    CONTENTS | PREV | NEXT
    Copyright © 1997-1998 Sun Microsystems, Inc. All Rights Reserved.