Interface McpErrorExceptionMapper<T extends Throwable>
- Type Parameters:
T
- Exception to Map
public interface McpErrorExceptionMapper<T extends Throwable>
ApI to define mappers from exceptions to
McpError
.-
Method Summary
-
Method Details
-
canMap
- Parameters:
clazz
- Exception class- Returns:
- Whether the mapper can map the exception
-
map
Map the given exception to aMcpError
.- Parameters:
exception
- The exception to map- Returns:
- an Mcp Error
-