MentorRecipeRejectionReasons class
The MentorRecipeRejectionReasons class of Novior.MentorAgent.Core: The reason codes of MentorRecipeRejection.ReasonCode, a closed list. They stay the same…
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.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Core. Package: Novior.MentorAgent.
public static class MentorRecipeRejectionReasons
dotnet add package Novior.MentorAgentFields
Section titled “Fields”Duplicate
Section titled “Duplicate”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.
InvalidDefinition
Section titled “InvalidDefinition”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.
InvalidName
Section titled “InvalidName”public const string InvalidName = "invalid-name"
The name is not 1 to 64 letters, digits, '_' and '-'.
InvalidParameters
Section titled “InvalidParameters”public const string InvalidParameters = "invalid-parameters"
More than MentorRecipeLimits.MaxParameters parameters, two of one name, or a parameter's name that is not valid.
InvalidRoute
Section titled “InvalidRoute”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.
InvalidSteps
Section titled “InvalidSteps”public const string InvalidSteps = "invalid-steps"
No step, more than MentorRecipeLimits.MaxSteps, or a step of a kind MentorAgent does not know.
InvalidValue
Section titled “InvalidValue”public const string InvalidValue = "invalid-value"
A step's text has a single brace: a brace in a text is written {{ or }}.
SourceFailed
Section titled “SourceFailed”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.
TooLong
Section titled “TooLong”public const string TooLong = "too-long"
A field is longer than its limit (MentorRecipeLimits), or there are too many roles.
UnknownParameter
Section titled “UnknownParameter”public const string UnknownParameter = "unknown-parameter"
A step's value names, between braces, something that is not one of the recipe's parameters.
