alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Exception
    WebMcpException
    Implements
    ISerializable
    Inherited Members
    Exception.Data
    Exception.GetBaseException()
    Exception.GetType()
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.SerializeObjectState
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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

    Implements

    ISerializable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved