org.filteredpush.mapper.exception
Class InvalidParameter

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

public class InvalidParameter
extends java.lang.Exception

An exception indicating invalid parameters for local data source query or update. E.g. the specify instance doesn't allow to insert an taxon with the the same scientific name but different authorship with an existing record. If such problem happens, the InvalidParameter exception will be thrown out containing the candidate value for user to choose.

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

Constructor Summary
InvalidParameter(java.lang.String message, java.lang.String fieldName)
           
InvalidParameter(java.lang.String message, java.lang.String fieldName, java.util.List<java.lang.String> options)
           
 
Method Summary
 java.lang.String getFieldName()
           
 java.util.List<java.lang.String> getOptions()
           
 
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

InvalidParameter

public InvalidParameter(java.lang.String message,
                        java.lang.String fieldName)

InvalidParameter

public InvalidParameter(java.lang.String message,
                        java.lang.String fieldName,
                        java.util.List<java.lang.String> options)
Method Detail

getFieldName

public java.lang.String getFieldName()

getOptions

public java.util.List<java.lang.String> getOptions()