37 lines
783 B
Python
37 lines
783 B
Python
"""Custom exceptions for API TestGen."""
|
|
|
|
|
|
class SpecParserError(Exception):
|
|
"""Base exception for spec parser errors."""
|
|
pass
|
|
|
|
|
|
class InvalidOpenAPISpecError(SpecParserError):
|
|
"""Raised when OpenAPI specification is invalid."""
|
|
pass
|
|
|
|
|
|
class UnsupportedVersionError(SpecParserError):
|
|
"""Raised when OpenAPI version is not supported."""
|
|
pass
|
|
|
|
|
|
class AuthConfigError(Exception):
|
|
"""Base exception for auth configuration errors."""
|
|
pass
|
|
|
|
|
|
class MissingSecuritySchemeError(AuthConfigError):
|
|
"""Raised when security scheme is not defined in spec."""
|
|
pass
|
|
|
|
|
|
class GeneratorError(Exception):
|
|
"""Base exception for generator errors."""
|
|
pass
|
|
|
|
|
|
class TemplateRenderError(GeneratorError):
|
|
"""Raised when template rendering fails."""
|
|
pass
|