org.filteredpush.mapper.exception
Class UniqueIdentificationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.filteredpush.mapper.exception.UniqueIdentificationException
All Implemented Interfaces:
java.io.Serializable

public class UniqueIdentificationException
extends java.lang.Exception

An exception indicating that the failure to uniquely identify the record. E.g. when insert an identification record, a gci_botanist (representing the identifier) record will be found and its id will be used to create the identification record. But if only the identifier's name is provided and more than one gci_botanist records are matched, then the system won't be able to know which record should be used. In this case, this exception will be thrown out.

Author:
Lei Dou $Id: $
See Also:
Serialized Form

Constructor Summary
UniqueIdentificationException(java.lang.String msg, java.lang.String typeName, java.util.Map<java.lang.String,java.lang.Object> providedRecord)
           
 
Method Summary
 void addCandidate(java.lang.String id, java.util.Map<java.lang.String,java.lang.String> c)
           
 java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getCandidates()
           
 java.lang.String getMsg()
           
 java.util.Map<java.lang.String,java.lang.Object> getProvidedRecord()
           
 java.lang.String getSupplementId()
           
 java.lang.String getTypeName()
           
 void setSupplementId(java.lang.String id)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UniqueIdentificationException

public UniqueIdentificationException(java.lang.String msg,
                                     java.lang.String typeName,
                                     java.util.Map<java.lang.String,java.lang.Object> providedRecord)
Method Detail

getMsg

public java.lang.String getMsg()

getTypeName

public java.lang.String getTypeName()

getProvidedRecord

public java.util.Map<java.lang.String,java.lang.Object> getProvidedRecord()

addCandidate

public void addCandidate(java.lang.String id,
                         java.util.Map<java.lang.String,java.lang.String> c)

getCandidates

public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getCandidates()

setSupplementId

public void setSupplementId(java.lang.String id)

getSupplementId

public java.lang.String getSupplementId()