Class ErrorMessage
- Namespace
- Xunit.Runner.Common
- Assembly
- xunit.v3.runner.common.dll
Default implementation of IErrorMessage.
[JsonTypeID("error")]
public sealed class ErrorMessage : MessageSinkMessage, IJsonDeserializable, IErrorMessage, IMessageSinkMessage, IJsonSerializable, IErrorMetadata
- Inheritance
-
ErrorMessage
- Implements
- Inherited Members
- Extension Methods
-
Xunit.Sdk.MessageSinkMessageExtensions.DispatchWhen``1(Xunit.Sdk.IMessageSinkMessage,Xunit.Runner.Common.MessageHandler{``0})
Properties
- ExceptionParentIndices
Gets the parent exception index(es) for the exception(s); a -1 indicates that the exception in question has no parent.
- ExceptionTypes
Gets the fully-qualified type name(s) of the exception(s).
- Messages
Gets the message(s) of the exception(s).
- StackTraces
Gets the stack trace(s) of the exception(s).
Methods
- Deserialize(IReadOnlyDictionary<string, object?>)
Override to deserialize the values in the dictionary into the message.
- FromException(Exception)
Creates a new IErrorMessage constructed from an Exception object.
- Serialize(JsonObjectSerializer)
Override to serialize the values in the message into JSON.