MCPcopy Index your code
hub / github.com/TaskingAI/TaskingAI / raise_credentials_validation_error

Function raise_credentials_validation_error

plugin/app/error/error_code.py:84–94  ·  view source on GitHub ↗
(message: str = None)

Source from the content-addressed store, hash-verified

82
83
84def raise_credentials_validation_error(message: str = None):
85 error_code = ErrorCode.CREDENTIALS_VALIDATION_ERROR
86 if not message:
87 message = (
88 "Bundle credentials validation has failed. Please check whether your credentials are correct "
89 "and if you have enough quota with the provider."
90 )
91 raise TKHttpException(
92 status_code=error_messages[error_code]["status_code"],
93 detail={"error_code": error_code, "message": message},
94 )

Callers 15

verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85
verifyMethod · 0.85

Calls 1

TKHttpExceptionClass · 0.70

Tested by

no test coverage detected