MCPcopy
hub / github.com/OpenBMB/ChatDev / ValidationError

Class ValidationError

utils/exceptions.py:29–35  ·  view source on GitHub ↗

Raised when validation fails.

Source from the content-addressed store, hash-verified

27
28
29class ValidationError(MACException):
30 """Raised when validation fails."""
31
32 def __init__(self, message: str, field: str = None, details: Dict[str, Any] = None):
33 super().__init__(message, "VALIDATION_ERROR", details or {})
34 if field:
35 self.details["field"] = field
36
37
38class SecurityError(MACException):

Callers 15

ensure_known_sessionFunction · 0.90
download_sessionFunction · 0.90
rename_workflowFunction · 0.90
copy_workflowFunction · 0.90
start_workflowMethod · 0.90
_resolve_yaml_pathMethod · 0.90
_run_single_taskMethod · 0.90
_resolve_yaml_pathMethod · 0.90
parse_batch_fileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected