Skip to content
Tracon

TraconAgentSourceException

Namespace Tracon · Assembly Tracon.Abstractions.dll

Represents a normalized failure from an IAgentSource.

public sealed class TraconAgentSourceException : TraconException, ISerializable

objectExceptionTraconExceptionTraconAgentSourceException

ISerializable

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

TraconAgentSourceException(string, string, string, Exception?)

Section titled “ TraconAgentSourceException(string, string, string, Exception?)”

Creates a normalized agent-source exception.

public TraconAgentSourceException(string sourceName, string errorType, string message, Exception? innerException = null)

sourceName string

The stable name of the source that failed.

errorType string

The stable error type code.

message string

The normalized error message.

innerException Exception?

The raw underlying error, or null for a contract violation the catalog itself detected, which has no underlying exception to carry.

The stable code for a source contract violation.

public const string SourceContractErrorType = "agent_source_contract"

string

The stable code for an ordinary source failure.

public const string SourceFailedErrorType = "agent_source_failed"

string

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

public override 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 TraconContentFilteredException 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.

Gets the stable name of the source that failed.

public string SourceName { get; }

string