Skip to content

Exceptions

The consolidated exception hierarchy raised by services and integrations (see ADR-009).

micboard.exceptions

Source

Custom exceptions for django-micboard.

Provides structured error handling with clear error codes and details for debugging and API responses.

MicboardError

Bases: Exception

Source

Base exception for all micboard errors.

Provides structured exception handling with error codes and details.

ManufacturerNotSupportedError

Bases: MicboardError

Source

Raised when manufacturer is not supported.

HardwareNotFoundError

Bases: MicboardError

Source

Raised when hardware is not found.

HardwareValidationError

Bases: MicboardError

Source

Raised when hardware data is invalid.

OrganizationDeviceQuotaExceededError

Bases: MicboardError

Source

Raised when a tenant-scoped chassis creation would exceed its quota.

APIError

Bases: MicboardError

Source

Base error for bounded manufacturer API operations.

APIRateLimitError

Bases: APIError

Source

Raised when a manufacturer API rate limit is exceeded.

APIAuthenticationError

Bases: APIError

Source

Raised when manufacturer API authentication fails.

APITimeoutError

Bases: APIError

Source

Raised when a manufacturer API operation times out.

LocationNotFoundError

Bases: MicboardError

Source

Raised when location is not found.

SettingNotFoundError

Bases: MicboardError

Source

Raised when a required setting cannot be resolved.

AdminAuditSetupError

Bases: MicboardError

Source

Raised when the live admin cannot be audited safely.

SubscriptionLeaseLostError

Bases: MicboardError

Source

Raised when another worker owns a realtime supervisor lease.

ServiceError

Bases: MicboardError

Source

Raised when service operation fails.

DiscoveryError

Bases: MicboardError

Source

Raised when device discovery fails.

LocationAlreadyExistsError

Bases: MicboardError

Source

Raised when a location with the given name already exists.