Class ProductCmptGenerationNotFoundException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProductCmptGenerationNotFoundException
    extends java.lang.RuntimeException
    Author:
    Jan Ortmann
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ProductCmptGenerationNotFoundException​(java.lang.String repositoryName, java.lang.String productCmptId, java.util.Calendar effectiveDate, boolean productCmptWasFound)
      Creates a new exception that indicates that no product component generation with the given id and effective date has been found.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Calendar getEffetiveDate()
      Returns the effective date for that a generation was requested.
      java.lang.String getProductCmptId()
      Returns the product component id of the product component generation that hasn't been found.
      java.lang.String getRepositoryName()
      Returns the name of the repository that was searched for the product component generation.
      boolean productCmptWasFound()
      Returns true if the product component was found in the repository but the product component hasn't got a generation valid at the given effective date.
      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 Detail

      • ProductCmptGenerationNotFoundException

        public ProductCmptGenerationNotFoundException​(java.lang.String repositoryName,
                                                      java.lang.String productCmptId,
                                                      java.util.Calendar effectiveDate,
                                                      boolean productCmptWasFound)
        Creates a new exception that indicates that no product component generation with the given id and effective date has been found.
    • Method Detail

      • getRepositoryName

        public java.lang.String getRepositoryName()
        Returns the name of the repository that was searched for the product component generation.
      • getProductCmptId

        public java.lang.String getProductCmptId()
        Returns the product component id of the product component generation that hasn't been found.
      • getEffetiveDate

        public java.util.Calendar getEffetiveDate()
        Returns the effective date for that a generation was requested.
      • productCmptWasFound

        public boolean productCmptWasFound()
        Returns true if the product component was found in the repository but the product component hasn't got a generation valid at the given effective date. Returns false if the product component hasn't been found.
      • toString

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