Skip to content

RuleConflictException

Namespace Nfty.Core.Generation in assembly Nfty.Core.

public class RuleConflictException : InvalidOperationException

A recipe's incompatibility rules exclude every combination of its variants, so no asset of that type can ever be rolled. Distinct from UniqueSpaceExhaustedException, which means the space is real but too small — this means the space is empty.

Constructors

RuleConflictException(IReadOnlyList<string>, string)

public RuleConflictException(IReadOnlyList<string> recipeIds, string message);

Creates the exception.

Parameters

  • recipeIds (IReadOnlyList<string>) - The recipes with an empty space.
  • message (string) - The message shown to the user verbatim.

Properties

RecipeIds

public IReadOnlyList<string> RecipeIds { get; }

The recipes whose rules exclude every combination.