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
public class PlacementModificationException extends PlacementException
Exception thrown when a placement modification is rejected by the placement plugin. Additional details about the reasons are provided if available ingetRejectedModifications()
or in theThrowable.toString()
methods.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PlacementModificationException()
PlacementModificationException(String message)
PlacementModificationException(String message, Throwable cause)
PlacementModificationException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRejectedModification(String modification, String reason)
Add information about the modification that cause this exception.String
getMessage()
Map<String,String>
getRejectedModifications()
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 Detail
-
PlacementModificationException
public PlacementModificationException()
-
PlacementModificationException
public PlacementModificationException(String message)
-
PlacementModificationException
public PlacementModificationException(String message, Throwable cause)
-
PlacementModificationException
public PlacementModificationException(Throwable cause)
-
-
Method Detail
-
addRejectedModification
public void addRejectedModification(String modification, String reason)
Add information about the modification that cause this exception.- Parameters:
modification
- requested modification detailsreason
- reason for rejection
-
getRejectedModifications
public Map<String,String> getRejectedModifications()
Return rejected modifications and reasons for rejections.
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-