org.wso2.carbon.registry.synchronization
Class SynchronizationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.wso2.carbon.registry.api.RegistryException
              extended by org.wso2.carbon.registry.core.exceptions.RegistryException
                  extended by org.wso2.carbon.registry.synchronization.SynchronizationException
All Implemented Interfaces:
java.io.Serializable

public class SynchronizationException
extends RegistryException

This type of exception is thrown when an error occurs while performing a synchronization operation on the Registry.

See Also:
Serialized Form

Constructor Summary
SynchronizationException(MessageCode code)
          Constructs a new exception with the specified message code.
SynchronizationException(MessageCode code, java.lang.String[] parameters)
          Constructs a new exception with the specified message code and cause and parameters related to this exception's detailed message.
SynchronizationException(MessageCode code, java.lang.Throwable cause)
          Constructs a new exception with the specified message code and cause.
SynchronizationException(MessageCode code, java.lang.Throwable cause, java.lang.String[] parameters)
          Constructs a new exception with the specified message code and cause and parameters related to this exception's detailed message.
 
Method Summary
 MessageCode getCode()
          Method to retrieve the message code of the detailed message of this exception.
 java.lang.String getMessage()
          Returns the detail message string of this throwable.
 java.lang.String[] getParameters()
          Method to retrieve the parameters of the detailed message of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SynchronizationException

public SynchronizationException(MessageCode code,
                                java.lang.Throwable cause)
Constructs a new exception with the specified message code and cause.

Parameters:
code - the message code of the error.
cause - the cause of this exception.

SynchronizationException

public SynchronizationException(MessageCode code,
                                java.lang.Throwable cause,
                                java.lang.String[] parameters)
Constructs a new exception with the specified message code and cause and parameters related to this exception's detailed message.

Parameters:
code - the message code of the error.
cause - the cause of this exception.
parameters - the parameters related to this exception.

SynchronizationException

public SynchronizationException(MessageCode code,
                                java.lang.String[] parameters)
Constructs a new exception with the specified message code and cause and parameters related to this exception's detailed message.

Parameters:
code - the message code of the error.
parameters - the parameters related to this exception.

SynchronizationException

public SynchronizationException(MessageCode code)
Constructs a new exception with the specified message code.

Parameters:
code - the message code of the error.
Method Detail

getCode

public MessageCode getCode()
Method to retrieve the message code of the detailed message of this exception.

Returns:
the message code.

getParameters

public java.lang.String[] getParameters()
Method to retrieve the parameters of the detailed message of this exception.

Returns:
the parameters of the detailed message.

getMessage

public java.lang.String getMessage()
Returns the detail message string of this throwable.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the detail message string of this Throwable instance (which may be null).


Copyright © 2011 WSO2 Inc. All Rights Reserved.