Package com.igormaznitsa.jbbp.exceptions
Class JBBPTooManyFieldsFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.igormaznitsa.jbbp.exceptions.JBBPException
com.igormaznitsa.jbbp.exceptions.JBBPFinderException
com.igormaznitsa.jbbp.exceptions.JBBPTooManyFieldsFoundException
- All Implemented Interfaces:
Serializable
The Exception will be thrown during search operation for only field, if there are too many variants.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJBBPTooManyFieldsFoundException(int numberOfInstances, String message, String nameOrPath, Class<? extends JBBPAbstractField> fieldType) The Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintGet the number of found instances.Methods inherited from class com.igormaznitsa.jbbp.exceptions.JBBPFinderException
getFieldType, getNameOrPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JBBPTooManyFieldsFoundException
public JBBPTooManyFieldsFoundException(int numberOfInstances, String message, String nameOrPath, Class<? extends JBBPAbstractField> fieldType) The Constructor.- Parameters:
numberOfInstances- the number of found variants.message- the exception messagenameOrPath- the name or the path used for searchfieldType- the field type used for search
-
-
Method Details
-
getNumberOfFoundInstances
public int getNumberOfFoundInstances()Get the number of found instances.- Returns:
- the number of found instances as integer
-