Exceptions

Exceptions of the infrastructure app.

The platform catches these, never a cloud provider’s own exceptions: each provider translates its SDK’s errors into them.

exception smarter.apps.infrastructure.exceptions.CertificateNotFound(message='')[source]

Bases: CertificateServiceError, InfrastructureResourceNotFound

A certificate does not exist.

exception smarter.apps.infrastructure.exceptions.CertificateNotIssued(message='')[source]

Bases: CertificateServiceError

A certificate exists, but is not issued.

exception smarter.apps.infrastructure.exceptions.CertificateServiceError(message='')[source]

Bases: SmarterInfrastructureError

The certificate service failed.

exception smarter.apps.infrastructure.exceptions.CertificateTimeout(message='')[source]

Bases: CertificateServiceError, InfrastructureTimeout

A certificate was not issued, or its validation records were not generated, in time.

exception smarter.apps.infrastructure.exceptions.DNSRecordTimeout(message='')[source]

Bases: DNSServiceError, InfrastructureTimeout

A DNS record did not appear in its zone in time.

exception smarter.apps.infrastructure.exceptions.DNSServiceError(message='')[source]

Bases: SmarterInfrastructureError

The DNS service failed.

exception smarter.apps.infrastructure.exceptions.DNSZoneNotFound(message='')[source]

Bases: DNSServiceError, InfrastructureResourceNotFound

A DNS zone does not exist.

exception smarter.apps.infrastructure.exceptions.EmailServiceError(message='')[source]

Bases: SmarterInfrastructureError

The email service is misconfigured.

exception smarter.apps.infrastructure.exceptions.InfrastructureConfigurationError(message='')[source]

Bases: SmarterInfrastructureError

An infrastructure service is misconfigured, or is refused in the unit tests.

The real cloud and cluster credentials of the Smarter containers can create billable resources, so the real services refuse to run in the unit tests unless they are asked to.

exception smarter.apps.infrastructure.exceptions.InfrastructureNotReadyError(message='')[source]

Bases: SmarterInfrastructureError

An infrastructure service is not authenticated, or not connected.

exception smarter.apps.infrastructure.exceptions.InfrastructureResourceNotFound(message='')[source]

Bases: SmarterInfrastructureError

An infrastructure resource, e.g. a DNS zone or a certificate, does not exist.

exception smarter.apps.infrastructure.exceptions.InfrastructureTimeout(message='')[source]

Bases: SmarterInfrastructureError

An infrastructure resource did not reach the expected state in time.

exception smarter.apps.infrastructure.exceptions.KubernetesServiceError(message='')[source]

Bases: SmarterInfrastructureError

The Kubernetes cluster is unavailable, or rejected a request.

exception smarter.apps.infrastructure.exceptions.SmarterInfrastructureError(message='')[source]

Bases: SmarterException

Base class of the infrastructure app’s exceptions.