Class WebMcpException
Typed exception used by the WebMCP dispatcher. Caught by CreateStructuredErrorResponse(WebMcpErrorCode, string?, string, Exception?) to produce a structured WebMcpToolResponse; never re-thrown to the agent.
Implements
Inherited Members
Namespace: Syncfusion.Blazor.Gantt
Assembly: Syncfusion.Blazor.Gantt.dll
Syntax
public class WebMcpException : Exception, ISerializable
Constructors
WebMcpException()
Initializes a new WebMcpException for serialization / deserialization scenarios. Internal callers should use the typed constructor above.
Declaration
protected WebMcpException()
WebMcpException(WebMcpErrorCode, string?, string, Exception?)
Initializes a new WebMcpException with the supplied error code, tool name, message, and optional inner exception.
Declaration
public WebMcpException(WebMcpErrorCode errorCode, string? toolName, string message, Exception? innerException = null)
Parameters
| Type | Name | Description |
|---|---|---|
| WebMcpErrorCode | errorCode | |
| string | toolName | |
| string | message | |
| Exception | innerException |
WebMcpException(string)
Initializes a new WebMcpException with the supplied message. Internal callers should use the typed constructor above so the dispatcher can carry the WebMcpErrorCode.
Declaration
protected WebMcpException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
WebMcpException(string, Exception)
Initializes a new WebMcpException with the supplied message and inner exception. Internal callers should use the typed constructor above so the dispatcher can carry the WebMcpErrorCode.
Declaration
protected WebMcpException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | |
| Exception | innerException |
Properties
ErrorCode
Gets the error code carried by this exception.
Declaration
public WebMcpErrorCode ErrorCode { get; }
Property Value
| Type |
|---|
| WebMcpErrorCode |
ToolName
Gets the bare (un-prefixed) tool name that produced the error.
Declaration
public string? ToolName { get; }
Property Value
| Type |
|---|
| string |