MentorAgent Docs
Menu

ReferencePackage: Novior.MentorAgent

MentorRecipeRejectionReasons class

The MentorRecipeRejectionReasons class of Novior.MentorAgent.Core: The reason codes of MentorRecipeRejection.ReasonCode, a closed list. They stay the same…

View as Markdown
On this page

The reason codes of MentorRecipeRejection.ReasonCode, a closed list. They stay the same from one version to the next; a new one comes only in a minor version, and the CHANGELOG says so.

Namespace: Novior.MentorAgent.Core. Package: Novior.MentorAgent.

public static class MentorRecipeRejectionReasons

Terminal
dotnet add package Novior.MentorAgent

public const string Duplicate = "duplicate"

A recipe of the same route and name was given before, by this source or by another: the first stays.

public const string InvalidDefinition = "invalid-definition"

A field that is required is missing or empty: the description, a step's selector, a row step's cell or key, a parameter's description.

public const string InvalidName = "invalid-name"

The name is not 1 to 64 letters, digits, '_' and '-'.

public const string InvalidParameters = "invalid-parameters"

More than MentorRecipeLimits.MaxParameters parameters, two of one name, or a parameter's name that is not valid.

public const string InvalidRoute = "invalid-route"

The route is not the route of a page: it does not start with '/', or has a query or a fragment.

public const string InvalidSteps = "invalid-steps"

No step, more than MentorRecipeLimits.MaxSteps, or a step of a kind MentorAgent does not know.

public const string InvalidValue = "invalid-value"

A step's text has a single brace: a brace in a text is written {{ or }}.

public const string SourceFailed = "source-failed"

The whole source threw. Added by MentorAgent, with the source's type as the name and the exception's type as the detail; the other sources are still asked.

public const string TooLong = "too-long"

A field is longer than its limit (MentorRecipeLimits), or there are too many roles.

public const string UnknownParameter = "unknown-parameter"

A step's value names, between braces, something that is not one of the recipe's parameters.