Class WaitFailedException
public sealed class WaitFailedException : InvalidOperationException
- Inheritance
-
objectExceptionSystemExceptionInvalidOperationExceptionWaitFailedException
Constructors
WaitFailedException(string, string, TimeSpan, string?, IReadOnlyList<string>?)
public WaitFailedException(string target, string reason, TimeSpan elapsed, string? lastSeen, IReadOnlyList<string>? context = null)
Parameters
targetstringreasonstringelapsedTimeSpanlastSeenstringcontextIReadOnlyList<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