org.gbif.datatester.exception
Class ConceptNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.gbif.datatester.exception.DataTesterException
              extended by org.gbif.datatester.exception.ConceptNotFoundException
All Implemented Interfaces:
java.io.Serializable

public class ConceptNotFoundException
extends DataTesterException

Exception to be raised when some concept was not found.

Version:
$Revision: 1.2 $
Author:
Renato De Giovanni ( renato at cria . org . br )
See Also:
Serialized Form

Constructor Summary
ConceptNotFoundException(java.lang.String msg, Concept concept)
          Constructor that accepts the Concept object.
ConceptNotFoundException(java.lang.String msg, java.lang.String conceptId)
          Constructor that accepts the Concept identifier.
 
Method Summary
 java.lang.String getConceptId()
          Returns the Concept identifier that has been used.
 
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

ConceptNotFoundException

public ConceptNotFoundException(java.lang.String msg,
                                Concept concept)

Constructor that accepts the Concept object.

Parameters:
msg - Message.
concept - Unknown concept.

ConceptNotFoundException

public ConceptNotFoundException(java.lang.String msg,
                                java.lang.String conceptId)

Constructor that accepts the Concept identifier.

Parameters:
msg - Message.
conceptId - Concept identifier that has been used.
Method Detail

getConceptId

public java.lang.String getConceptId()

Returns the Concept identifier that has been used.

Returns:
Concept identifier that has been used.