Name

RegistryException

Synopsis

public class RegistryException extends JAXRException {
// Public Constructors
    public RegistryException(  ); 
    public RegistryException( Throwable cause); 
    public RegistryException( String reason); 
    public RegistryException( String reason, Throwable cause); 
// Public Instance Methods
    public javax.xml.registry.infomodel.Key getErrorObjectKey() 
      throws JAXRException;               // default:null
    public void setErrorObjectKey(javax.xml.registry.infomodel.Key key) 
      throws JAXRException; 
}

RegistryException is a subclass of JAXRException that is used to report errors that occur on the registry side of a connection during a JAXR query or update operation. RegistryExceptions are returned to a JAXR client as part of a BulkResponse rather than being thrown from a JAXR API method. When a RegistryException reports an error relating to a single object in the registry (such as a failure to save or delete that object), the provider may use the setErrorObjectKey( ) key method to associate the javax.xml.registry.infomodel.Key that uniquely identifies the object with the exception. The getErrorObjectKey( ) method may be used to retrieve the key, but returns null if it has not been set, as would be the case, for example, if an error were detected during a find operation.

Subclasses

DeleteException, FindException, SaveException

Get Java Web Services in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.