public class AmbiguousSelectionException extends ConstraintViolationException
vehicle with an attribute power. Then we create a subtype of vehicle called car with a first attribute called carPower which overrides power and a second
attribute called carPower2 which overrides power too. Then we create an instance of car called myCar. Finally we try to add an holder for power on myCar. An
AmbiguousSelectionException will be thrown as the system could not determinate if the holder is an instance of carPower or carPower2.| Constructor and Description |
|---|
AmbiguousSelectionException(String message)
Constructs an
AmbiguousSelectionException with the specified detail message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AmbiguousSelectionException(String message)
AmbiguousSelectionException with the specified detail message.message - the detail message.Copyright © 2022. All rights reserved.