exceptions

All exceptions for anyblok_wms_base bloks.

exception anyblok_wms_base.exceptions.AssemblyExtraInputs(op, extra, prelude=None, fmt=None, **kwargs)[source]
exception anyblok_wms_base.exceptions.AssemblyInputNotMatched(op_model_or_record, spec_item, from_state=None, to_state=None, prelude=None, fmt=None, **kwargs)[source]
exception anyblok_wms_base.exceptions.AssemblyPropertyConflict(op, spec_item, prop, existing, candidate, prelude=None, fmt=None, **kwargs)[source]
exception anyblok_wms_base.exceptions.AssemblyWrongInputProperties(op, avatar, req_props, req_prop_values, spec_item=None, prelude=None, fmt=None, **kwargs)[source]

For inputs properties been checked in Assembly.

It can be raised either for global or per input requirements. In the latter case, the given input specification can be passed, taking form of the spec_idx, spec_nr and spec_detail kwargs, similarly to AssemblyInputNotMatched. for global requirements, these kwargs should be set to None

exception anyblok_wms_base.exceptions.ObservationError(model_or_record, fmt, **kwargs)[source]

For specific errors of Observations.

exception anyblok_wms_base.exceptions.OperationContainerExpected(op, msg, offender=None, **kw)[source]

Raised by Operations involving containers / locations.

If some Operation expects something to be container (also thought as a location) and it turns out not to be one, the Operation is supposed to raise this exception.

exception anyblok_wms_base.exceptions.OperationError(model_or_record, fmt, **kwargs)[source]
operation = None

None if raised for a Model class, Operation instance otherwise

exception anyblok_wms_base.exceptions.OperationForbiddenState(*args, **kwargs)[source]

Raised by Operations that forbid certain states.

exception anyblok_wms_base.exceptions.OperationInputWrongState(op_model_or_record, record, expected_state, prelude=None, fmt=None, **kwargs)[source]
exception anyblok_wms_base.exceptions.OperationInputsError(model_or_record, fmt, **kwargs)[source]

Used in Operations for errors about their inputs.

classmethods, such as create must pass the inputs kwarg.

exception anyblok_wms_base.exceptions.OperationIrreversibleError(op, **kw)[source]

Raised if trying to revert an irreversible operation.

exception anyblok_wms_base.exceptions.OperationMissingInputsError(model_or_record, fmt, **kwargs)[source]

Used in Operation creation if inputs aren’t passed.

exception anyblok_wms_base.exceptions.OperationMissingQuantityError(model_or_record, fmt, **kwargs)[source]

Used if the operation requires some quantity that’s not passed.

exception anyblok_wms_base.exceptions.OperationPhysObjReserved(model_or_record, fmt, **kwargs)[source]

Used if an Operation tries and work on some reserved PhysObj in a txn that doesn’t own the reservation.

exception anyblok_wms_base.exceptions.OperationQuantityError(model_or_class, fmt, input=None, op_quantity=None, **kwargs)[source]

Used if an operation has an issue with some quantity.

exception anyblok_wms_base.exceptions.UnknownExpressionType(op, etype, evalue, prelude=None, fmt=None, **kwargs)[source]