Class IdRepoDuplicateObjectException

    • Method Detail

      • nameAlreadyExists

        public static IdRepoDuplicateObjectException nameAlreadyExists​(String name)
        Create an instance using the localized IdRepoErrorCode.NAME_ALREADY_EXISTS error message populated with the provided name.
        Parameters:
        name - An identity name that is already taken
        Returns:
        exception with localized error message
      • identityOfTypeAlreadyExists

        public static IdRepoDuplicateObjectException identityOfTypeAlreadyExists​(String name,
                                                                                 String type)
        Create an instance using the localized IdRepoErrorCode.IDENTITY_OF_TYPE_ALREADY_EXISTS error message populated with the provided name and type.
        Parameters:
        name - An identity name that is already taken
        type - The identity type
        Returns:
        exception with localized error message