AgentException
Namespace: E2E
public sealed class AgentException : E2EException, ISerializableAn agent step failed, was blocked, or could not talk to its model.
Inheritance: object → Exception → E2EException
Implements: ISerializable
Constructors
Section titled “Constructors”AgentException(string, string)
Section titled “AgentException(string, string)”public AgentException(string code, string message)Parameters
| Name | Type | Description |
|---|---|---|
code |
string | |
message |
string |
AgentException(string, string, bool)
Section titled “AgentException(string, string, bool)”public AgentException(string code, string message, bool blocked)Parameters
| Name | Type | Description |
|---|---|---|
code |
string | |
message |
string | |
blocked |
bool |
AgentException(string, string, bool, Exception)
Section titled “AgentException(string, string, bool, Exception)”public AgentException(string code, string message, bool blocked, Exception inner)Parameters
| Name | Type | Description |
|---|---|---|
code |
string | |
message |
string | |
blocked |
bool | |
inner |
Exception |
AgentException(string, string, Exception)
Section titled “AgentException(string, string, Exception)”public AgentException(string code, string message, Exception inner)Parameters
| Name | Type | Description |
|---|---|---|
code |
string | |
message |
string | |
inner |
Exception |
Properties
Section titled “Properties”Blocked
Section titled “Blocked”public bool Blocked { get; }True when credentials, the environment, test setup, or the agent’s own budget stopped the step, rather than the app misbehaving.
Value: bool
Explanation
Section titled “Explanation”public string Explanation { get; }The step’s account of what happened. The same text as Message.
Value: string
Screenshot
Section titled “Screenshot”public string? Screenshot { get; init; }Where a failed AssertAsync kept its redacted screenshot, relative to the project root. Null when none was taken:
Screenshot = false or the engine captures no pixels.
Value: string