Errors API

Exceptions raised within openscm_twolayermodel

exception openscm_twolayermodel.errors.ModelStateError

Bases: ValueError

Exception raised if a model’s state is incompatible with the action

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception openscm_twolayermodel.errors.UnitError

Bases: ValueError

Exception raised if something has the wrong units

args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.