Sanitize an error for logs or rethrowing across MCP boundaries.
Error or thrown value to sanitize.
Sanitizer options and exact secrets.
Error with sanitized name/message/stack and enumerable fields.
Sanitize an error for logs or rethrowing across MCP boundaries.