JavaTM 2 Platform
Standard Ed. 6

javax.naming
类 LimitExceededException

java.lang.Object
  继承者 java.lang.Throwable
      继承者 java.lang.Exception
          继承者 javax.naming.NamingException
              继承者 javax.naming.LimitExceededException
所有已实现的接口:
Serializable
直接已知子类:
SizeLimitExceededException, TimeLimitExceededException

public class LimitExceededException
extends NamingException

当某一方法因为用户或系统指定的限制而异常终止时,抛出此异常。此异常与 InsufficientResourceException 的不同之处在于,LimitExceededException 是因为用户/系统指定的限制而抛出的。例如,为完成请求而耗尽内存是资源不足异常。客户端请求 10 个答案却得到 11 个答案则是大小限制异常。

这些限制的示例包括客户端和服务器配置限制,比如大小、时间、跳数,等等。

应用于 NamingException 的同步和序列化问题在这里可以直接应用。

从以下版本开始:
1.3
另请参见:
序列化表格

字段摘要
 
从类 javax.naming.NamingException 继承的字段
remainingName, resolvedName, resolvedObj, rootException
 
构造方法摘要
LimitExceededException()
          构造一个新的 LimitExceededException 实例,将解释和所有名称解析字段初始化为 null。
LimitExceededException(String explanation)
          使用解释构造一个新的 LimitExceededException 实例。
 
方法摘要
 
从类 javax.naming.NamingException 继承的方法
appendRemainingComponent, appendRemainingName, getCause, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 
从类 java.lang.Throwable 继承的方法
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

LimitExceededException

public LimitExceededException()
构造一个新的 LimitExceededException 实例,将解释和所有名称解析字段初始化为 null。


LimitExceededException

public LimitExceededException(String explanation)
使用解释构造一个新的 LimitExceededException 实例。其他所有字段都默认为 null。

参数:
explanation - 有关此异常的可能为 null 的详细信息。
另请参见:
Throwable.getMessage()

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

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