Enum ReasonException.Reason
- All Implemented Interfaces:
Serializable,Comparable<ReasonException.Reason>
- Enclosing class:
ReasonException
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents an unresolved package referenced byDynamic-ImportPackage.Represents the scenario where a fragment matches a host but is not selected because another fragment with the sameBundle-SymbolicNamealready matched, usually a fragment of a higher version.Represents the scenario where a requirement could not be resolved.Represents a failure in the use constraints of a bundle. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReasonException.ReasonReturns the enum constant of this type with the specified name.static ReasonException.Reason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DynamicImport
Represents an unresolved package referenced byDynamic-ImportPackage.ResolutionException.getUnresolvedRequirements()will return a collection containing the singleosgi.wiring.package;resolution:=dynamicrequirement which failed to resolve.This reason has no a transitive cause.
-
FragmentNotSelected
Represents the scenario where a fragment matches a host but is not selected because another fragment with the sameBundle-SymbolicNamealready matched, usually a fragment of a higher version.ResolutionException.getUnresolvedRequirements()will return a collection containing the singleosgi.wiring.hostrequirement of the fragment.This reason has no a transitive cause.
-
MissingRequirement
Represents the scenario where a requirement could not be resolved.ResolutionException.getUnresolvedRequirements()will return a collection containing a single requirement that didn't resolve.This reason may have a transitive cause.
-
UseConstraint
Represents a failure in the use constraints of a bundle.ResolutionException.getUnresolvedRequirements()will return a collection containing a single requirement to blame for the use constraint violation.This reason has no a transitive cause.
-
-
Constructor Details
-
Reason
private Reason()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-