Class StopMergingException

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

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

    Constructors 
    Constructor Description
    StopMergingException()
    Default constructor
    StopMergingException​(long collisions)
    This constructor sets only the number of collisions and leaves the message to null.
    StopMergingException​(java.lang.String message)
    This constructor sets only the message for this exception and leaves the cause to null.
    StopMergingException​(java.lang.String message, java.lang.Long collisions)
    This constructor allows to set message and number of collisions for this exception.
  • Method Summary

    Modifier and Type Method Description
    java.lang.Long getCollisions()
    Gets the number of collisions till this point.
    java.lang.String toString()  

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • StopMergingException

      public StopMergingException()
      Default constructor
    • StopMergingException

      public StopMergingException​(java.lang.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​(java.lang.String message, java.lang.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 java.lang.Long getCollisions()
      Gets the number of collisions till this point.
      Returns:
      Returns the number of collisions or null.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Throwable