Skip to content

AgentPrismException

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Base class for every error AgentPrism raises.

public class AgentPrismException : Exception, ISerializable

objectExceptionAgentPrismException

AgentPrismCompilationException, AgentPrismContentBlockedException, AgentPrismContentFilteredException, AgentPrismExternalCallException, AgentPrismProviderUnavailableException, AgentPrismSessionConflictException, AgentPrismToolTimeoutException, JobRetryException, ReplayToolMismatchException

ISerializable

Exception.GetBaseException(), Exception.ToString(), Exception.GetType(), Exception.TargetSite, Exception.Message, Exception.Data, Exception.InnerException, Exception.HelpLink, Exception.Source, Exception.HResult, Exception.StackTrace, Exception.SerializeObjectState, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Creates a new error.

public AgentPrismException()

Creates a new error.

public AgentPrismException(string message)

message string

The error message.

Creates a new error.

public AgentPrismException(string message, Exception innerException)

message string

The error message.

innerException Exception

The underlying error.

Gets the stable error type name written to the run record.

public virtual string ErrorType { get; }

string

Defaults to the full name of the exception type, so today’s behaviour does not change. A derived type overrides this member when the record has to be machine readable — for example AgentPrismContentFilteredException writes content_filtered. Reports and alert rules can rely on this stable name instead of an assembly name.

The value is written to RunError.Type and carries no secret.