com.ibm.serviceregistry
Class ServiceRegistryModificationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.ibm.serviceregistry.ServiceRegistryException
              extended by com.ibm.serviceregistry.ServiceRegistryModificationException
All Implemented Interfaces:
ServiceRegistryLocalizedMessage, java.io.Serializable

public class ServiceRegistryModificationException
extends ServiceRegistryException

Thrown to indicate one or more errors occurred while running a modification plugin. The result will be that the transaction will be rolled back and both the changes made by the modification plugin and all changes made as a result of the original event will be rolled back.

See Also:
Serialized Form

Field Summary
static java.lang.String copyrightStatement
           
 
Fields inherited from class com.ibm.serviceregistry.ServiceRegistryException
messageResource, messageResourceLoader, PROPERTY_BSRURI, rollbackOnly
 
Constructor Summary
ServiceRegistryModificationException(java.lang.String key, java.lang.Object[] inserts)
           
ServiceRegistryModificationException(java.lang.String key, java.lang.Object[] inserts, java.lang.Throwable cause)
           
 
Method Summary
 java.util.List getDiagnosticMessages()
          Obtain the diagnostic messages attached to this validation exception.
 java.util.List getDiagnosticMessages(java.util.Locale locale)
          Obtain the diagnostic messages attached to this validation exception in a specific Locale.
 java.util.List getDiagnostics()
          Deprecated.  
 java.util.List<ServiceRegistryDiagnostic> getFullDiagnostics()
          Return the raw diagnostic data.
 void setDiagnostics(java.util.List objects)
          Deprecated.  
 void setFullDiagnostics(java.util.List<ServiceRegistryDiagnostic> objects)
          Set the raw diagnostic data.
 java.lang.String toString()
          Override toString() to include the diagnostic messages
 
Methods inherited from class com.ibm.serviceregistry.ServiceRegistryException
getCause, getExplanationText, getExplanationText, getFailingObject, getInserts, getLocalizedMessage, getLocalizedMessage, getMapToVersion, getMessage, getMessageKey, getMessageNumber, getMessageResource, getMessageResourceLoader, getMessageSeverity, getMessageText, getMessageText, getProperty, getResourceMessage, getResponseText, getResponseText, getRollbackOnly, setCause, setFailingObject, setMapToVersion, setMessageResource, setProperty, writeReplace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

copyrightStatement

public static final java.lang.String copyrightStatement
See Also:
Constant Field Values
Constructor Detail

ServiceRegistryModificationException

public ServiceRegistryModificationException(java.lang.String key,
                                            java.lang.Object[] inserts)

ServiceRegistryModificationException

public ServiceRegistryModificationException(java.lang.String key,
                                            java.lang.Object[] inserts,
                                            java.lang.Throwable cause)
Method Detail

getDiagnosticMessages

public java.util.List getDiagnosticMessages()
Obtain the diagnostic messages attached to this validation exception. The default Locale is used to format the messages.

Returns:
List of diagnostic message Strings

getDiagnosticMessages

public java.util.List getDiagnosticMessages(java.util.Locale locale)
Obtain the diagnostic messages attached to this validation exception in a specific Locale.

Parameters:
locale - The locale in which to format the messages
Returns:
List of diagnostic message Strings

getFullDiagnostics

public java.util.List<ServiceRegistryDiagnostic> getFullDiagnostics()
Return the raw diagnostic data.

Returns:
A List of diagnostic objects

setFullDiagnostics

public void setFullDiagnostics(java.util.List<ServiceRegistryDiagnostic> objects)
Set the raw diagnostic data.

Parameters:
objects - A List of diagnostic objects

getDiagnostics

public java.util.List getDiagnostics()
Deprecated. 

Return the raw diagnostic data.

Returns:
A List of diagnostic objects

setDiagnostics

public void setDiagnostics(java.util.List objects)
Deprecated. 

Set the raw diagnostic data.

Parameters:
objects - A List of diagnostic objects

toString

public java.lang.String toString()
Override toString() to include the diagnostic messages

Overrides:
toString in class java.lang.Throwable


© Copyright IBM Corporation 2006, 2009. All Rights Reserved.