org.jdtaus.core.container
Class MultiplicityConstraintException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
org.jdtaus.core.container.MultiplicityConstraintException
- All Implemented Interfaces:
- Serializable
public class MultiplicityConstraintException
- extends IllegalStateException
Gets thrown for multiplicity constraint violations.
Specifications with a multiplicity of MULTIPLICITY_ONE specify
that exactly one corresponding implementation must be available among a set
of modules. This exception gets thrown for any specification violating this
constraint.
- Version:
- $Id: MultiplicityConstraintException.java 8044 2009-07-02 01:29:05Z schulte2005 $
- Author:
- Christian Schulte
- See Also:
Specification.getMultiplicity(),
Serialized Form
|
Constructor Summary |
MultiplicityConstraintException(String specificationIdentifier)
Creates a new MultiplicityConstraintException taking the
identifier of the specification for which the multiplicity constraint
is violated. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MultiplicityConstraintException
public MultiplicityConstraintException(String specificationIdentifier)
- Creates a new
MultiplicityConstraintException taking the
identifier of the specification for which the multiplicity constraint
is violated.
- Parameters:
specificationIdentifier - identifier of the specification for
which the constraint is violated.
getSpecificationIdentifier
public String getSpecificationIdentifier()
- Gets the identifier of the specification for which the multiplicity
constraint is violated.
- Returns:
- the identifier of the specification for which the multiplicity
constraint is violated.
Copyright © 2005-2009 jDTAUS. All Rights Reserved.