Skip to content

Reference

ImxException

Bases: CustomException

IMX specific exception.

Info

This is a base exception class for IMX-related errors, allowing for a generic exception message and error level, along with optional additional data.

Parameters:

Name Type Description Default
msg str

The exception message.

'Generic Imx Exception'
level ErrorLevelEnum

The error level of the exception.

ERROR
data Any | None

Optional additional data associated with the exception.

None

ImxUnconnectedExtension

Bases: ImxException

Exception for unconnected IMX object extension.

Info

This exception is raised when an IMX object extension cannot be matched to an entity and is not connected. The additional data is expected to be an ImxObject.

Parameters:

Name Type Description Default
msg str

The exception message.

'Imx Exception object can not be matched to entity and is not connected'
level ErrorLevelEnum

The error level of the exception.

ERROR
data ImxObject | None

Optional additional data associated with the exception, expected to be an ImxObject.

None

ImxDuplicatedPuicsInContainer

Bases: ImxException

Exception for duplicated PUICs in a container.

Info

This exception is raised when there are duplicated PUICs in a container. The additional data is expected to be a list of the duplicated PUICs.

Parameters:

Name Type Description Default
msg str

The exception message.

'Duplicated puic in container'
level ErrorLevelEnum

The error level of the exception.

CRITICAL
data list[Any] | None

Optional additional data associated with the exception, expected to be a list.

None

ImxRailConnectionRefNotPresent

Bases: ImxException

Exception for missing PUICs in RailConnections.

Info

This exception is raised when building RailConnections and a PUIC is not present in the container. The additional data is expected to be a list of the missing PUICs.

Parameters:

Name Type Description Default
msg str

The exception message.

'puic not in container'
level ErrorLevelEnum

The error level of the exception.

ERROR
data list[str] | None

Optional additional data associated with the exception, expected to be a list.

None

ImxTopologyExtensionNotPresent

Bases: ImxException

Exception for missing PUICs in Topology Extensions.

Info

This exception is raised when building Topology Extensions and a PUIC is not present in the container. The additional data is expected to be a list of the missing PUICs.

Parameters:

Name Type Description Default
msg str

The exception message.

'puic not in container'
level ErrorLevelEnum

The error level of the exception.

ERROR
data list[str] | None

Optional additional data associated with the exception, expected to be a list.

None

ImxRailConnectionMultiLinestring

Bases: ImxException

Exception for PUICs present in multiple linestrings in RailConnections.

Info

This exception is raised when building RailConnections and a PUIC is present in multiple linestrings. The additional data is expected to be a list of the PUICs.

Parameters:

Name Type Description Default
msg str

The exception message.

'puic not in container'
level ErrorLevelEnum

The error level of the exception.

ERROR
data list[str] | None

Optional additional data associated with the exception, expected to be a list.

None