bw_processing.errors
Exceptions
Common base class for all non-exit exceptions. |
|
Datapackage closed, can't be written to anymore. |
|
MD5 hash does not agree with file contents |
|
Given fields not the same for each element |
|
Provided mimetype missing or not understood |
|
Name fails datapackage requirements: |
|
Number of resources doesn't match the number of data objects |
|
Nonunique elements when uniqueness is required |
|
Given operation could cause inconsistent data |
|
Array shapes in a resource group are not consistent |
|
Wrong type of data written to a resource |
Module Contents
- exception bw_processing.errors.BrightwayProcessingError[source]
Bases:
ExceptionCommon base class for all non-exit exceptions.
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.Closed[source]
Bases:
BrightwayProcessingErrorDatapackage closed, can’t be written to anymore.
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.FileIntegrityError[source]
Bases:
BrightwayProcessingErrorMD5 hash does not agree with file contents
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.InconsistentFields[source]
Bases:
BrightwayProcessingErrorGiven fields not the same for each element
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.InvalidMimetype[source]
Bases:
BrightwayProcessingErrorProvided mimetype missing or not understood
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.InvalidName[source]
Bases:
BrightwayProcessingErrorName fails datapackage requirements:
A short url-usable (and preferably human-readable) name of the package. This MUST be lower-case and contain only alphanumeric characters along with “.”, “_” or “-” characters.
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.LengthMismatch[source]
Bases:
BrightwayProcessingErrorNumber of resources doesn’t match the number of data objects
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.NonUnique[source]
Bases:
BrightwayProcessingErrorNonunique elements when uniqueness is required
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.PotentialInconsistency[source]
Bases:
BrightwayProcessingErrorGiven operation could cause inconsistent data
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.ShapeMismatch[source]
Bases:
BrightwayProcessingErrorArray shapes in a resource group are not consistent
Initialize self. See help(type(self)) for accurate signature.
- exception bw_processing.errors.WrongDatatype[source]
Bases:
BrightwayProcessingErrorWrong type of data written to a resource
Initialize self. See help(type(self)) for accurate signature.