MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / new_error

Function new_error

src/anthropic/_exceptions.py:267–268  ·  view source on GitHub ↗
(error_class: type[AnthropicError], *args: object)

Source from the content-addressed store, hash-verified

265
266
267def new_error(error_class: type[AnthropicError], *args: object) -> AnthropicError:
268 return error_class.__new__(error_class, *args)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected