Class WebMcpException
Represents a structured failure raised while executing a Kanban WebMCP tool.
Implements
Inherited Members
Namespace: Syncfusion.Blazor.Kanban
Assembly: Syncfusion.Blazor.Kanban.dll
Syntax
public sealed class WebMcpException : Exception, ISerializable
Remarks
The message never contains a stack trace or internal exception detail, so it is safe to forward to the agent verbatim.
Constructors
WebMcpException()
Initializes a new instance of the WebMcpException class with a generic execution failure.
Declaration
public WebMcpException()
WebMcpException(WebMcpErrorCode, string?, string, Exception?)
Initializes a new instance of the WebMcpException class.
Declaration
public WebMcpException(WebMcpErrorCode errorCode, string? toolName, string message, Exception? innerException = null)
Parameters
| Type | Name | Description |
|---|---|---|
| WebMcpErrorCode | errorCode | The error code that classifies this failure. |
| string | toolName | The tool name the failure relates to. |
| string | message | The agent-facing message. |
| Exception | innerException | The underlying exception, if any. |
WebMcpException(string?)
Initializes a new instance of the WebMcpException class with a generic execution failure.
Declaration
public WebMcpException(string? message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The failure message. |
WebMcpException(string?, Exception?)
Initializes a new instance of the WebMcpException class with a generic execution failure.
Declaration
public WebMcpException(string? message, Exception? innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The failure message. |
| Exception | innerException | The underlying exception, if any. |
Properties
ErrorCode
Gets the error code that classifies this failure.
Declaration
public WebMcpErrorCode ErrorCode { get; }
Property Value
| Type |
|---|
| WebMcpErrorCode |
ToolName
Gets the tool name the failure relates to.
Declaration
public string? ToolName { get; }
Property Value
| Type |
|---|
| string |