au.org.ala.names.search
Class ParentSynonymChildException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by au.org.ala.names.search.SearchResultException
              extended by au.org.ala.names.search.ParentSynonymChildException
All Implemented Interfaces:
java.io.Serializable

public class ParentSynonymChildException
extends SearchResultException

An exception that is thrown when the result represents a situation where the parent is a synonym of the child concept. This situation typically occurs when a species has been split into one or more subspecies.

Author:
Natasha Carter
See Also:
Serialized Form

Field Summary
 
Fields inherited from class au.org.ala.names.search.SearchResultException
errorType, results
 
Constructor Summary
ParentSynonymChildException(NameSearchResult parentResult, NameSearchResult childResult)
           
 
Method Summary
 NameSearchResult getChildResult()
           
 NameSearchResult getParentResult()
           
 
Methods inherited from class au.org.ala.names.search.SearchResultException
getErrorType, getResults
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParentSynonymChildException

public ParentSynonymChildException(NameSearchResult parentResult,
                                   NameSearchResult childResult)
Method Detail

getChildResult

public NameSearchResult getChildResult()

getParentResult

public NameSearchResult getParentResult()


Copyright © 2014. All Rights Reserved.