Table of Contents

Class WaitFailedException

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll
public sealed class WaitFailedException : InvalidOperationException
Inheritance
object
Exception
SystemException
InvalidOperationException
WaitFailedException

Constructors

WaitFailedException(string, string, TimeSpan, string?, IReadOnlyList<string>?)

public WaitFailedException(string target, string reason, TimeSpan elapsed, string? lastSeen, IReadOnlyList<string>? context = null)

Parameters

target string
reason string
elapsed TimeSpan
lastSeen string
context IReadOnlyList<string>

Lines seen just before lastSeen, oldest first, for example the log lines leading to a failure line.

Properties

Context

Lines seen just before LastSeen, oldest first; empty when the wait kept none.

public IReadOnlyList<string> Context { get; }

Property Value

IReadOnlyList<string>

Elapsed

public TimeSpan Elapsed { get; }

Property Value

TimeSpan

LastSeen

public string? LastSeen { get; }

Property Value

string

Reason

public string Reason { get; }

Property Value

string

Target

public string Target { get; }

Property Value

string