Class WebMcpException
Exception type for WebMCP operations.
Implements
Inherited Members
Namespace: Syncfusion.Blazor.DocumentEditor
Assembly: Syncfusion.Blazor.DocumentEditor.dll
Syntax
public class WebMcpException : Exception, ISerializable
Constructors
WebMcpException()
Initializes a new instance of the WebMcpException class.
Declaration
public WebMcpException()
WebMcpException(WebMcpErrorCode, string, string, Exception?)
Initializes a new instance of the WebMcpException class.
Declaration
public WebMcpException(WebMcpErrorCode code, string command, string userMessage, Exception? inner = null)
Parameters
| Type | Name | Description |
|---|---|---|
| WebMcpErrorCode | code | The error code. |
| string | command | The tool command that raised the error. |
| string | userMessage | The message intended to be shown to the agent. |
| Exception | inner | The optional inner exception. |
WebMcpException(string)
Initializes a new instance of the WebMcpException class.
Declaration
public WebMcpException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message. |
WebMcpException(string, Exception)
Initializes a new instance of the WebMcpException class.
Declaration
public WebMcpException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The error message. |
| Exception | innerException | The inner exception. |
Properties
Code
Gets the error code.
Declaration
public WebMcpErrorCode Code { get; }
Property Value
| Type |
|---|
| WebMcpErrorCode |
Command
Gets the tool command that raised the error.
Declaration
public string Command { get; }
Property Value
| Type |
|---|
| string |
UserMessage
Gets the message intended to be shown to the agent.
Declaration
public string UserMessage { get; }
Property Value
| Type |
|---|
| string |