using ColaFlow.Modules.Mcp.Contracts.JsonRpc;

namespace ColaFlow.Modules.Mcp.Domain.Exceptions;

/// <summary>
/// Exception thrown when invalid method parameters are provided
/// Maps to JSON-RPC error code -32602 (InvalidParams)
/// </summary>
public class McpInvalidParamsException : McpException
{
    /// <summary>
    /// Initializes a new instance of the <see cref="McpInvalidParamsException"/> class
    /// </summary>
    /// <param name="message">Error message</param>
    /// <param name="errorData">Additional error data (optional)</param>
    public McpInvalidParamsException(string message = "Invalid params", object? errorData = null)
        : base(JsonRpcErrorCode.InvalidParams, message, errorData)
    {
    }
}
