Exceptions

Custom PlexosDB exceptions that highlight domain-specific failures.

exception plexosdb.exceptions.NotFoundError

Bases: Exception

Raised when the database cannot locate a requested entry.

exception plexosdb.exceptions.MultlipleElementsError

Bases: Exception

Raised when a query unexpectedly returns multiple elements.

exception plexosdb.exceptions.ModelError

Bases: Exception

Raised for generic errors related to model relationships.

exception plexosdb.exceptions.MultipleFilesError

Bases: Exception

Raised when multiple files are provided but only one is expected.

exception plexosdb.exceptions.NameError

Bases: ValueError

Raised when an object name is invalid or missing in context.

exception plexosdb.exceptions.NoPropertiesError

Bases: Exception

Raised when a lookup finds no properties for a given object.

exception plexosdb.exceptions.PropertyError

Bases: Exception

Raised when we have a problem with a property.