DefaultRunErrorClassifier
AgentPrism.Core.dllAgentPrism’s built-in error classifier.
public sealed class DefaultRunErrorClassifier : IRunErrorClassifierInheritance
Section titled “Inheritance”object ← DefaultRunErrorClassifier
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”First tries an exact match on the error’s stable identity
(RunError.Type); this maps both the value written by
AgentPrismException subtypes (for example: content_filtered)
and the old fully-qualified type name written before that value was added
(for example: AgentPrism.AgentPrismCompilationException) to the SAME
class — past records join the new taxonomy without breaking.
If there is no exact match, it falls back to pattern matching on the message and the type name. An error that matches no rule becomes RunErrorClass.Unknown — it is never guessed.
Called only on the error path (see IRunErrorClassifier); the
patterns are written with the source generator (GeneratedRegex) so
as not to allocate on the hot path.
Constructors
Section titled “Constructors”DefaultRunErrorClassifier()
Section titled “ DefaultRunErrorClassifier()”public DefaultRunErrorClassifier()Methods
Section titled “Methods”Classify(RunError)
Section titled “ Classify(RunError)”Classifies the error. Returns RunErrorClass.Unknown if no rule matches — it does not guess.
public RunErrorClassification Classify(RunError runError)Parameters
Section titled “Parameters”runError RunError
The raw error to classify.
Returns
Section titled “Returns”The class and clustering fingerprint.