au.org.ala.names.search
Class SearchResultException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by au.org.ala.names.search.SearchResultException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ExcludedNameException, HomonymException, MisappliedException, ParentSynonymChildException, SPPException

public class SearchResultException
extends java.lang.Exception

The generic search result exception that can be thrown during a search. This exception will be used to wrap any exception that occurs that do not fall into the other categories.

Author:
Natasha
See Also:
HomonymException, Serialized Form

Field Summary
protected  ErrorType errorType
           
protected  java.util.List<NameSearchResult> results
           
 
Constructor Summary
SearchResultException(java.lang.String msg)
           
SearchResultException(java.lang.String msg, java.util.List<NameSearchResult> results)
           
 
Method Summary
 ErrorType getErrorType()
           
 java.util.List<NameSearchResult> 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
 

Field Detail

results

protected java.util.List<NameSearchResult> results

errorType

protected ErrorType errorType
Constructor Detail

SearchResultException

public SearchResultException(java.lang.String msg)

SearchResultException

public SearchResultException(java.lang.String msg,
                             java.util.List<NameSearchResult> results)
Method Detail

getResults

public java.util.List<NameSearchResult> getResults()

getErrorType

public ErrorType getErrorType()


Copyright © 2014. All Rights Reserved.