class SamlError(Exception): """Base exception for SAML failures.""" class SamlConfigurationError(SamlError): """Raised when an IdP/SP configuration issue prevents SAML auth.""" class SamlProvisioningError(SamlError): """Raised when we cannot map an assertion to a local user."""