javax.xml.registry
Class RegistryException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--javax.xml.registry.JAXRException
|
+--javax.xml.registry.RegistryException
- All Implemented Interfaces:
- JAXRResponse, java.io.Serializable
- Direct Known Subclasses:
- 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.
- See Also:
- Serialized Form
Constructor Summary |
RegistryException()
Constructs a JAXRException object with no
reason or embedded Throwable. |
RegistryException(java.lang.String reason)
Constructs a JAXRException object with the given
String as the reason for the exception being thrown. |
RegistryException(java.lang.String reason,
java.lang.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(java.lang.Throwable cause)
Constructs a JAXRException object initialized
with the given Throwable object. |
Method Summary |
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class 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(java.lang.String reason)
- Constructs a
JAXRException
object with the given
String
as the reason for the exception being thrown.
- Parameters:
reason
- a description of what caused the exception
RegistryException
public RegistryException(java.lang.String reason,
java.lang.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.
- Parameters:
reason
- a description of what caused the exceptioncause
- a Throwable
object that is to
be embedded in this JAXRException
object
RegistryException
public RegistryException(java.lang.Throwable cause)
- Constructs a
JAXRException
object initialized
with the given Throwable
object.
- Parameters:
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.
- Returns:
- the key to the first object in error
setErrorObjectKey
public void setErrorObjectKey(Key key)
throws JAXRException
- Sets the Key to the first object that encountered an error in the registry.
- Parameters:
key
- the key to the first object in error