| | |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.replication.server; |
| | | import org.opends.messages.Message; |
| | | |
| | | |
| | | |
| | | import org.opends.server.types.IdentifiedException; |
| | | |
| | | |
| | | |
| | | /** |
| | | * This class define an Exception that must be used when some error |
| | | * condition was detected in the replicationServer database that cannot be |
| | |
| | | */ |
| | | public class ReplicationDBException extends IdentifiedException |
| | | { |
| | | private int messageID; |
| | | |
| | | private static final long serialVersionUID = -8812600147768060090L; |
| | | |
| | |
| | | * This Exception must be used when the full replicationServer service is |
| | | * compromised by the exception |
| | | * |
| | | * @param messageID The unique message ID for the provided message. |
| | | * @param message The message to use for this exception. |
| | | */ |
| | | public ReplicationDBException(int messageID, String message) |
| | | public ReplicationDBException(Message message) |
| | | { |
| | | super(message); |
| | | |
| | | this.messageID = messageID; |
| | | } |
| | | |
| | | /** |
| | | * Returns the message Id associated to this Exception. |
| | | * @return the message ID associated to this Exception. |
| | | */ |
| | | public int getMessageID() |
| | | { |
| | | return messageID; |
| | | } |
| | | } |