bw_processing.errors

Exceptions

BrightwayProcessingError

Common base class for all non-exit exceptions.

Closed

Datapackage closed, can't be written to anymore.

FileIntegrityError

MD5 hash does not agree with file contents

InconsistentFields

Given fields not the same for each element

InvalidMimetype

Provided mimetype missing or not understood

InvalidName

Name fails datapackage requirements:

LengthMismatch

Number of resources doesn't match the number of data objects

NonUnique

Nonunique elements when uniqueness is required

PotentialInconsistency

Given operation could cause inconsistent data

ShapeMismatch

Array shapes in a resource group are not consistent

WrongDatatype

Wrong type of data written to a resource

Module Contents

exception bw_processing.errors.BrightwayProcessingError[source]

Bases: Exception

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

exception bw_processing.errors.Closed[source]

Bases: BrightwayProcessingError

Datapackage closed, can’t be written to anymore.

Initialize self. See help(type(self)) for accurate signature.

exception bw_processing.errors.FileIntegrityError[source]

Bases: BrightwayProcessingError

MD5 hash does not agree with file contents

Initialize self. See help(type(self)) for accurate signature.

exception bw_processing.errors.InconsistentFields[source]

Bases: BrightwayProcessingError

Given fields not the same for each element

Initialize self. See help(type(self)) for accurate signature.

exception bw_processing.errors.InvalidMimetype[source]

Bases: BrightwayProcessingError

Provided mimetype missing or not understood

Initialize self. See help(type(self)) for accurate signature.

exception bw_processing.errors.InvalidName[source]

Bases: BrightwayProcessingError

Name 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: BrightwayProcessingError

Number 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: BrightwayProcessingError

Nonunique elements when uniqueness is required

Initialize self. See help(type(self)) for accurate signature.

exception bw_processing.errors.PotentialInconsistency[source]

Bases: BrightwayProcessingError

Given operation could cause inconsistent data

Initialize self. See help(type(self)) for accurate signature.

exception bw_processing.errors.ShapeMismatch[source]

Bases: BrightwayProcessingError

Array shapes in a resource group are not consistent

Initialize self. See help(type(self)) for accurate signature.

exception bw_processing.errors.WrongDatatype[source]

Bases: BrightwayProcessingError

Wrong type of data written to a resource

Initialize self. See help(type(self)) for accurate signature.