org.faktorips.runtime
Class ProductCmptGenerationNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.faktorips.runtime.ProductCmptGenerationNotFoundException
All Implemented Interfaces:
Serializable

public class ProductCmptGenerationNotFoundException
extends RuntimeException

Author:
Jan Ortmann
See Also:
Serialized Form

Constructor Summary
ProductCmptGenerationNotFoundException(String repositoryName, String productCmptId, 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
 Calendar getEffetiveDate()
          Returns the effective date for that a generation was requested.
 String getProductCmptId()
          Returns the product component id of the product component generation that hasn't been found.
 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.
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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(String repositoryName,
                                              String productCmptId,
                                              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 String getRepositoryName()
Returns the name of the repository that was searched for the product component generation.


getProductCmptId

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


getEffetiveDate

public 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 String toString()
Overrides:
toString in class Throwable


Copyright © 2015. All rights reserved.