bw2data.errors#

Exceptions#

BW2Exception

Base class for exceptions in Brightway2

Brightway2Project

This project is not yet migrated to Brightway 2.5

DifferentObjects

Revision comparison of two different objects doesn't make sense and isn't allowed

DuplicateNode

Can't have nodes with same unique identifiers

IncompatibleClasses

Revision comparison across two different classes doesn't make sense and isn't allowed

InconsistentData

Attempted a change on data which was in an inconsistent state with the changeset.

InvalidDatapackage

The given datapackage can't be used for the requested task.

InvalidExchange

Exchange is missing 'amount' or 'input'

MissingIntermediateData

Base class for exceptions in Brightway2

MultipleResults

Base class for exceptions in Brightway2

NotAllowed

This operation is not allowed

NotFound

Requested web resource not found

PickleError

Pickle file can't be loaded due to updated library file structure

UnknownObject

Base class for exceptions in Brightway2

UntypedExchange

Exchange doesn't have 'type' attribute

ValidityError

The activity or exchange dataset does not have all the required fields

WebUIError

Can't find running instance of bw2-web

WrongDatabase

Can't save activities from database x to database y.

Module Contents#

exception bw2data.errors.BW2Exception[source]#

Bases: Exception

Base class for exceptions in Brightway2

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

exception bw2data.errors.Brightway2Project[source]#

Bases: BW2Exception

This project is not yet migrated to Brightway 2.5

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

exception bw2data.errors.DifferentObjects[source]#

Bases: BW2Exception

Revision comparison of two different objects doesn’t make sense and isn’t allowed

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

exception bw2data.errors.DuplicateNode[source]#

Bases: BW2Exception

Can’t have nodes with same unique identifiers

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

exception bw2data.errors.IncompatibleClasses[source]#

Bases: BW2Exception

Revision comparison across two different classes doesn’t make sense and isn’t allowed

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

exception bw2data.errors.InconsistentData[source]#

Bases: BW2Exception

Attempted a change on data which was in an inconsistent state with the changeset.

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

exception bw2data.errors.InvalidDatapackage[source]#

Bases: BW2Exception

The given datapackage can’t be used for the requested task.

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

exception bw2data.errors.InvalidExchange[source]#

Bases: BW2Exception

Exchange is missing ‘amount’ or ‘input’

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

exception bw2data.errors.MissingIntermediateData[source]#

Bases: BW2Exception

Base class for exceptions in Brightway2

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

exception bw2data.errors.MultipleResults[source]#

Bases: BW2Exception

Base class for exceptions in Brightway2

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

exception bw2data.errors.NotAllowed[source]#

Bases: BW2Exception

This operation is not allowed

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

exception bw2data.errors.NotFound[source]#

Bases: BW2Exception

Requested web resource not found

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

exception bw2data.errors.PickleError[source]#

Bases: BW2Exception

Pickle file can’t be loaded due to updated library file structure

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

exception bw2data.errors.UnknownObject[source]#

Bases: BW2Exception

Base class for exceptions in Brightway2

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

exception bw2data.errors.UntypedExchange[source]#

Bases: BW2Exception

Exchange doesn’t have ‘type’ attribute

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

exception bw2data.errors.ValidityError[source]#

Bases: BW2Exception

The activity or exchange dataset does not have all the required fields

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

exception bw2data.errors.WebUIError[source]#

Bases: BW2Exception

Can’t find running instance of bw2-web

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

exception bw2data.errors.WrongDatabase[source]#

Bases: BW2Exception

Can’t save activities from database x to database y.

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