Class ConstraintViolationException

    • Constructor Detail

      • ConstraintViolationException

        protected ConstraintViolationException​(Item item,
                                               Throwable cause)
    • Method Detail

      • getFeature

        public abstract Feature getFeature()
      • getItem

        public final Item getItem()
        Returns the item that was attempted to be modified. Returns null, if the constraint violation occured on the creation of an item.
      • getItemPhrase

        protected final String getItemPhrase()
      • getMessageWithoutFeature

        public final String getMessageWithoutFeature()
      • getMessage

        protected abstract String getMessage​(boolean withFeature)