Skip to content
Tracon

TraconException

Namespace Tracon · Assembly Tracon.Abstractions.dll

Base class for every error Tracon raises.

public class TraconException : Exception, ISerializable

objectExceptionTraconException

EvalRunDiffUnavailableException, JobRetryException, ReplayToolMismatchException, TraconAgentSourceException, TraconCompilationException, TraconContentBlockedException, TraconContentFilteredException, TraconExternalCallException, TraconProviderUnavailableException, TraconRunBudgetExceededException, TraconSessionConflictException, TraconSessionOwnerRequiredException, TraconStructuredResponseException, TraconToolTimeoutException

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 TraconException()

Creates a new error.

public TraconException(string message)

message string

The error message.

Creates a new error.

public TraconException(string message, Exception? innerException)

message string

The error message.

innerException Exception?

The underlying error, or null when there is none to carry.

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 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.