RegistryException (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.registry Class RegistryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.registry.JAXRException
              extended by javax.xml.registry.RegistryException
所有已实现的接口:
Serializable, JAXRResponse
直接已知子类:
DeleteException, FindException, SaveException

public class RegistryException
extends JAXRException

This is the common base class for all Exceptions that are detected on the registry provider side rather than the JAXR client side.

作者:
Farrukh S. Najmi
另请参见:
Serialized Form

字段摘要
 
Fields inherited from class javax.xml.registry.JAXRException
cause
 
Fields inherited from interface javax.xml.registry.JAXRResponse
STATUS_FAILURE, STATUS_SUCCESS, STATUS_UNAVAILABLE, STATUS_WARNING
 
构造器摘要
RegistryException()
          Constructs a JAXRException object with no reason or embedded Throwable.
RegistryException(String reason)
          Constructs a JAXRException object with the given String as the reason for the exception being thrown.
RegistryException(String reason, Throwable cause)
          Constructs a JAXRException object with the given String as the reason for the exception being thrown and the given Throwable object as an embedded Throwable.
RegistryException(Throwable cause)
          Constructs a JAXRException object initialized with the given Throwable object.
 
方法摘要
 Key getErrorObjectKey()
          Gets the Key to the first object that encountered an error in the registry.
 void setErrorObjectKey(Key key)
          Sets the Key to the first object that encountered an error in the registry.
 
类方法继承 javax.xml.registry.JAXRException
getCause, getMessage, getRequestId, getStatus, initCause, isAvailable
 
类方法继承 java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
类方法继承 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造器详细信息

RegistryException

public RegistryException()
Constructs a JAXRException object with no reason or embedded Throwable.


RegistryException

public RegistryException(String reason)
Constructs a JAXRException object with the given String as the reason for the exception being thrown.

参数:
reason - a description of what caused the exception


RegistryException

public RegistryException(String reason,
                         Throwable cause)
Constructs a JAXRException object with the given String as the reason for the exception being thrown and the given Throwable object as an embedded Throwable.

参数:
reason - a description of what caused the exception
cause - a Throwable object that is to be embedded in this JAXRException object


RegistryException

public RegistryException(Throwable cause)
Constructs a JAXRException object initialized with the given Throwable object.

参数:
cause - the Throwable that caused this Exception

方法详细信息

getErrorObjectKey

public Key getErrorObjectKey()
                      throws JAXRException
Gets the Key to the first object that encountered an error in the registry.

返回:
the key to the first object in error
抛出异常:
JAXRException

setErrorObjectKey

public void setErrorObjectKey(Key key)
                       throws JAXRException
Sets the Key to the first object that encountered an error in the registry.

参数:
key - the key to the first object in error
抛出异常:
JAXRException

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.