batch.configuration package¶
Subpackages¶
Submodules¶
batch.configuration.configuration module¶
Defines the class for managing a batch configuration
-
class
batch.configuration.configuration.BatchConfiguration¶ Bases:
objectRepresents a batch configuration
-
validate(batch)¶ Validates the given batch to make sure it is valid with respect to this batch configuration. This method will perform database calls as needed to perform the validation.
Parameters: batch ( batch.models.Batch) – The batch modelReturns: A list of warnings discovered during validation Return type: list():raises
batch.configuration.exceptions.InvalidConfiguration: If the configuration is invalid
-
batch.configuration.exceptions module¶
Defines exceptions that can occur when interacting with batch configurations
-
exception
batch.configuration.exceptions.InvalidConfiguration(name, description)¶ Bases:
util.exceptions.ValidationExceptionException indicating that the provided batch configuration was invalid