org.jdtaus.core.container
Class InheritanceConstraintException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalStateException
                  extended by org.jdtaus.core.container.InheritanceConstraintException
All Implemented Interfaces:
Serializable

public class InheritanceConstraintException
extends IllegalStateException

Gets thrown for inheritance constraint violations.

An Implementation is only allowed to be the parent of another implementation if the value of property final is false. This exception gets thrown for any implementation violating this constraint.

Version:
$Id: InheritanceConstraintException.java 8044 2009-07-02 01:29:05Z schulte2005 $
Author:
Christian Schulte
See Also:
Implementation.getParent(), Implementation.isFinal(), Serialized Form

Constructor Summary
InheritanceConstraintException(String implementationIdentifier)
          Creates a new InheritanceConstraintException instance taking the identifier of the implementation violating the constraint.
 
Method Summary
 String getImplementationIdentifier()
          Gets the identifier of the implementation violating the constraint.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InheritanceConstraintException

public InheritanceConstraintException(String implementationIdentifier)
Creates a new InheritanceConstraintException instance taking the identifier of the implementation violating the constraint.

Parameters:
implementationIdentifier - identifier of the implementation violating the constraint.
Method Detail

getImplementationIdentifier

public String getImplementationIdentifier()
Gets the identifier of the implementation violating the constraint.

Returns:
identifier of the implementation violating the constraint.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.