An error raised when an import fails due to module changes between V1 and V2. Attributes: message: Description of the error.
| 132 | |
| 133 | |
| 134 | class PydanticImportError(PydanticErrorMixin, ImportError): |
| 135 | """An error raised when an import fails due to module changes between V1 and V2. |
| 136 | |
| 137 | Attributes: |
| 138 | message: Description of the error. |
| 139 | """ |
| 140 | |
| 141 | def __init__(self, message: str) -> None: |
| 142 | super().__init__(message, code='import-error') |
| 143 | |
| 144 | |
| 145 | class PydanticSchemaGenerationError(PydanticUserError): |