Class StopMergingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
i5.las2peer.persistency.StopMergingException
All Implemented Interfaces:
Serializable

public class StopMergingException extends Exception
This exception should be thrown by a StorageCollisionHandler if there should be no further merging attempt.
See Also:
  • Constructor Details

    • StopMergingException

      public StopMergingException()
      Default constructor
    • StopMergingException

      public StopMergingException(String message)
      This constructor sets only the message for this exception and leaves the cause to null.
      Parameters:
      message - A message that describes the error.
    • StopMergingException

      public StopMergingException(long collisions)
      This constructor sets only the number of collisions and leaves the message to null.
      Parameters:
      collisions - The number of collisions that occurred till this point.
    • StopMergingException

      public StopMergingException(String message, Long collisions)
      This constructor allows to set message and number of collisions for this exception.
      Parameters:
      message - A message that describes the error.
      collisions - The number of collisions that occurred till this point.
  • Method Details

    • getCollisions

      public Long getCollisions()
      Gets the number of collisions till this point.
      Returns:
      Returns the number of collisions or null.
    • toString

      public String toString()
      Overrides:
      toString in class Throwable