To use this type, add from zaber_motion.exceptions import MotionLibException to the top of your source code.
| Exception | Description |
|---|---|
| BadCommandException | Thrown when a device receives an invalid command. |
| BadDataException | Thrown when a parameter of a command is judged to be out of range by the receiving device. |
| BinaryCommandFailedException | Thrown when a device rejects a binary command with an error. Details: BinaryCommandFailedExceptionData |
| CommandFailedException | Thrown when a device rejects a command. Details: CommandFailedExceptionData |
| CommandPreemptedException | Thrown when a movement command gets preempted by another command. |
| CommandTooLongException | Thrown when a command is too long to be written by the ASCII protocol, even when continued across multiple lines. Details: CommandTooLongExceptionData |
| ConnectionClosedException | Thrown when attempting to communicate on a closed connection. |
| ConnectionFailedException | Thrown when a connection breaks during a request. |
| ConversionFailedException | Thrown when a value cannot be converted using the provided units. |
| DeviceAddressConflictException | Thrown when there is a conflict in device numbers preventing unique addressing. Details: DeviceAddressConflictExceptionData |
| DeviceBusyException | Thrown when a requested operation fails because the device is currently busy. |
| DeviceDbFailedException | Thrown when device information cannot be retrieved from the device database. Details: DeviceDbFailedExceptionData |
| DeviceDetectionFailedException | Thrown when device detection fails. |
| DeviceFailedException | Thrown when a device registers fatal failure. Contact support if you observe this exception. |
| DeviceNotIdentifiedException | Thrown when attempting an operation that requires an identified device. |
| DriverDisabledException | Thrown when a device cannot carry out a movement command because the motor driver is disabled. |
| GCodeExecutionException | Thrown when a block of G-Code cannot be executed. Details: GCodeExecutionExceptionData |
| GCodeSyntaxException | Thrown when a block of G-Code cannot be parsed. Details: GCodeSyntaxExceptionData |
| IncompatibleSharedLibraryException | Thrown when the loaded shared library is incompatible with the running code. Typically caused by mixed library binary files. Reinstall the library. |
| InternalErrorException | Used for internal error handling. Please report an issue if observed. |
| InvalidArgumentException | Thrown when a function is called with invalid values. |
| InvalidCsvDataException | Thrown when CSV file cannot be parsed as expected. |
| InvalidDataException | Thrown when incoming device data cannot be parsed as expected. |
| InvalidOperationException | Thrown when operation cannot be performed at given time or context. |
| InvalidPacketException | Thrown when a packet from a device cannot be parsed. Details: InvalidPacketExceptionData |
| InvalidParkStateException | Thrown when a device is unable to park. |
| InvalidRequestDataException | Used for internal error handling. Indicates passing values of incorrect type from scripting languages or mixed library binary files. |
| InvalidResponseException | Thrown when a device sends a response with unexpected type or data. Details: InvalidResponseExceptionData |
| IoChannelOutOfRangeException | Thrown when a device IO operation cannot be performed because the provided channel is not valid. |
| IoFailedException | Thrown when the library cannot perform an operation on a file. |
| LockstepEnabledException | Thrown when an operation cannot be performed because lockstep motion is enabled. |
| LockstepNotEnabledException | Thrown when an operation cannot be performed because lockstep motion is not enabled. |
| MovementFailedException | Thrown when a device registers a fault during movement. Details: MovementFailedExceptionData |
| MovementInterruptedException | Thrown when ongoing movement is interrupted by another command or user input. Details: MovementInterruptedExceptionData |
| NoDeviceFoundException | Thrown when no devices can be found on a connection. |
| NoValueForKeyException | Thrown when trying to access a key that has not been set. |
| NotSupportedException | Thrown when a device does not support a requested command or setting. |
| OperationFailedException | Thrown when a non-motion device fails to perform a requested operation. Details: OperationFailedExceptionData |
| OsFailedException | Thrown when an operation fails due to underlying operating system error. |
| OutOfRequestIdsException | Thrown when the library is overwhelmed with too many simultaneous requests. |
| PvtDiscontinuityException | Thrown when a PVT sequence encounters discontinuity and interrupts the sequence. |
| PvtExecutionException | Thrown when a PVT sequence motion fails. Details: PvtExecutionExceptionData |
| PvtModeException | Thrown when an operation is not supported by a mode the PVT sequence is currently set up in. |
| PvtMovementFailedException | Thrown when a device registers a fault during PVT movement. Details: PvtMovementFailedExceptionData |
| PvtMovementInterruptedException | Thrown when ongoing PVT movement is interrupted by another command or user input. Details: PvtMovementInterruptedExceptionData |
| PvtSequenceGenerationFailedException | Thrown when a PVT sequence generator function fails to find a sequence. |
| PvtSetupFailedException | Thrown when setting up a PVT sequence fails. |
| RemoteModeException | Thrown when a command is rejected because the device is in EtherCAT Control (remote) mode. Change the device setting comm.ethercat.remote to 0 to switch to local control. |
| RequestTimeoutException | Thrown when a device does not respond to a request in time. |
| SerialPortBusyException | Thrown when a serial port cannot be opened because it is in use by another application. |
| SetDeviceStateFailedException | Thrown when a device cannot be set to the supplied state. Details: SetDeviceStateExceptionData |
| SetPeripheralStateFailedException | Thrown when an axis cannot be set to the supplied state. Details: SetPeripheralStateExceptionData |
| StreamDiscontinuityException | Thrown when a stream encounters discontinuity and interrupts the movement. |
| StreamExecutionException | Thrown when a streamed motion fails. Details: StreamExecutionExceptionData |
| StreamModeException | Thrown when an operation is not supported by a mode the stream is currently set up in. |
| StreamMovementFailedException | Thrown when a device registers a fault during streamed movement. Details: StreamMovementFailedExceptionData |
| StreamMovementInterruptedException | Thrown when ongoing stream movement is interrupted by another command or user input. |
| StreamSetupFailedException | Thrown when setting up a stream fails. |
| TimeoutException | Thrown for various timeouts across the library excluding request to a device (see RequestTimeoutException). |
| TransportAlreadyUsedException | Thrown when a transport has already been used to open another connection. |
| UnknownRequestException | Used for internal error handling. Indicates mixed library binary files. Reinstall the library. |