Class PlacementModificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.solr.cluster.placement.PlacementException
org.apache.solr.cluster.placement.PlacementModificationException
- All Implemented Interfaces:
Serializable
Exception thrown when a placement modification is rejected by the placement plugin. Additional
details about the reasons are provided if available in
getRejectedModifications() or in
the Throwable.toString() methods.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPlacementModificationException(String message) PlacementModificationException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRejectedModification(String modification, String reason) Add information about the modification that cause this exception.Return rejected modifications and reasons for rejections.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PlacementModificationException
public PlacementModificationException() -
PlacementModificationException
-
PlacementModificationException
-
PlacementModificationException
-
-
Method Details
-
addRejectedModification
Add information about the modification that cause this exception.- Parameters:
modification- requested modification detailsreason- reason for rejection
-
getRejectedModifications
Return rejected modifications and reasons for rejections. -
getMessage
- Overrides:
getMessagein classThrowable
-