Class EntityNotFoundException

    • Field Detail

      • ELEMENT_NAME

        public static final String ELEMENT_NAME
        Unique name of the element to use for XML and JSON marshalling/unmarshalling.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EntityNotFoundException

        public EntityNotFoundException​(@Nullable
                                       EntityIdPath parentIdPath,
                                       @NotNull
                                       @NotNull EntityId entityId)
        Constructor with all data.
        Parameters:
        parentIdPath - Path from root to parent or null if the entity identifier is a root aggregate ID.
        entityId - Unique identifier of the entity that was not found.
      • EntityNotFoundException

        public EntityNotFoundException​(@NotNull
                                       @NotNull EntityIdPath entityIdPath)
        Constructor with entity identifier path.
        Parameters:
        entityIdPath - Entity identifier path (from root to entity).
    • Method Detail

      • getShortId

        public final String getShortId()
        Specified by:
        getShortId in interface org.fuin.objects4j.common.ExceptionShortIdentifable
      • getParentIdPath

        @NotNull
        public final @NotNull String getParentIdPath()
        Returns the path from root to parent.
        Returns:
        Path.
      • getEntityId

        @NotNull
        public final @NotNull String getEntityId()
        Returns the unique identifier of the entity.
        Returns:
        Unknown entity identifier.