| 1 | class SwaggerError(Exception): |
| 2 | pass |
| 3 | |
| 4 | |
| 5 | class SwaggerValidationError(SwaggerError): |
| 6 | def __init__(self, msg, errors=None, spec=None, source_codec=None, *args): |
| 7 | super(SwaggerValidationError, self).__init__(msg, *args) |
| 8 | self.errors = errors |
| 9 | self.spec = spec |
| 10 | self.source_codec = source_codec |
| 11 | |
| 12 | |
| 13 | class SwaggerGenerationError(SwaggerError): |
| 14 | pass |