JavaTM 2 Platform
Standard Ed. 6

org.omg.CORBA.portable
类 IndirectionException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 java.lang.RuntimeException
              继承者 org.omg.CORBA.SystemException
                  继承者 org.omg.CORBA.portable.IndirectionException
所有已实现的接口:
Serializable

public class IndirectionException
extends SystemException

Indirection 异常是一个特定于 Java 的系统异常。在调用 ORB 输入流解组一个以间接运算 (indirection) 形式编码的值,且该值正处于解组过程中时,将抛出该异常。这可能发生在 ORB 输入流调用 ValueHandler 来解组一个 RMI 值,而该值的状态包含在对其自身的递归引用中时。因为调用 ValueHandler.read_value() 目前不返回值,所以 ORB 输入流的间接运算列表不包含用于间接运算标记所指定的流偏移量的条目。流偏移量返回到异常的 offset 字段中。

另请参见:
InputStream, OutputStream

字段摘要
 int offset
          指向流偏移量。
 
从类 org.omg.CORBA.SystemException 继承的字段
completed, minor
 
构造方法摘要
IndirectionException(int offset)
          使用正确的偏移量值创建一个 IndirectionException。
 
方法摘要
 
从类 org.omg.CORBA.SystemException 继承的方法
toString
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

offset

public int offset
指向流偏移量。

构造方法详细信息

IndirectionException

public IndirectionException(int offset)
使用正确的偏移量值创建一个 IndirectionException。流偏移量返回到异常的 offset 字段中。在从流中递归读出定义的值时构造并抛出此异常。

参数:
offset - 流偏移量,该处检测到递归

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only