PluginProbe
ZIP AI – AI Website Builder & AI Agent / 0.0.13
ZIP AI – AI Website Builder & AI Agent v0.0.13
0.0.14 0.0.13 0.0.12 0.0.11 0.0.10 0.0.9 trunk 0.0.4 0.0.5 0.0.6 0.0.7 0.0.8
zip-ai / lib / mcp-adapter / includes / Infrastructure / ErrorHandling / Contracts / McpErrorHandlerInterface.php

McpErrorHandlerInterface.php in ZIP AI – AI Website Builder & AI Agent 0.0.13, at lib/mcp-adapter/includes/Infrastructure/ErrorHandling/Contracts/McpErrorHandlerInterface.php

31 lines 759 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Interface for MCP error handlers.
4 *
5 * @package McpAdapter
6 */
7
8 declare( strict_types=1 );
9
10 namespace WP\MCP\Infrastructure\ErrorHandling\Contracts;
11
12 /**
13 * Interface for handling MCP error logging.
14 *
15 * This interface defines the contract for error handlers that can log
16 * error messages with context information and different severity types.
17 */
18 interface McpErrorHandlerInterface {
19
20 /**
21 * Log an error message with optional context and type.
22 *
23 * @param string $message The log message.
24 * @param array $context Additional context data.
25 * @param string $type The log type (e.g., 'error', 'info', 'debug').
26 *
27 * @return void
28 */
29 public function log( string $message, array $context = array(), string $type = 'error' ): void;
30 }
31