semantic_digital_twin.adapters.exceptions#

Exceptions#

UnsupportedFBXAxis

Raised when the global settings of an FBX file name an axis that does not exist.

UnexpectedArrayShape

Raised when an array does not have the shape its use requires.

Module Contents#

exception semantic_digital_twin.adapters.exceptions.UnsupportedFBXAxis#

Bases: semantic_digital_twin.exceptions.ParsingError

Raised when the global settings of an FBX file name an axis that does not exist.

axis_index: int#

The index of the axis.

sign: int#

The direction of the axis.

error_message() → str#
Returns:

A human-readable description of what went wrong.

suggest_correction() → str#
Returns:

Advice on how to fix the error, or an empty string if there is no specific advice.

exception semantic_digital_twin.adapters.exceptions.UnexpectedArrayShape#

Bases: semantic_digital_twin.exceptions.ParsingError

Raised when an array does not have the shape its use requires.

array_name: str#

The name of the array.

expected_shape: str#

The shape the array must have, with letters standing for any size.

actual_shape: list[int]#

The shape the array has.

error_message() → str#
Returns:

A human-readable description of what went wrong.

suggest_correction() → str#
Returns:

Advice on how to fix the error, or an empty string if there is no specific advice.