Error Handling¶
Error mapping from oinker to MCP.
porkbun_mcp.errors
¶
Error mapping from oinker to MCP ToolErrors.
handle_oinker_error
¶
Convert oinker exceptions to MCP ToolErrors.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
e
|
Exception
|
The exception to convert. |
required |
operation
|
str
|
Description of the operation that failed. |
required |
Returns:
| Type | Description |
|---|---|
ToolError
|
A ToolError with an appropriate message. |