Raised when validation fails.
| 27 | |
| 28 | |
| 29 | class 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 | |
| 38 | class SecurityError(MACException): |
no outgoing calls
no test coverage detected