5. Exceptions
Re-export from the async library.
- exception trainlib.exc.TrainlibError
Bases:
Exception
Base error.
- exception trainlib.exc.TrainCommandError
Bases:
intelino.trainlib_async.exc.TrainlibError
Command building error.
- exception trainlib.exc.TrainMessageInterpretationError
Bases:
intelino.trainlib_async.exc.TrainlibError
Structure unpacking failed.
- exception trainlib.exc.TrainMessageLengthError
Bases:
intelino.trainlib_async.exc.TrainlibError
The length of the received message is shorter than expected and cannot be parsed.
- exception trainlib.exc.TrainMessageTypeError
Bases:
intelino.trainlib_async.exc.TrainlibError
Incorrect message type was expected.
- exception trainlib.exc.TrainNotConnectedError
Bases:
intelino.trainlib_async.exc.TrainlibError
In case the train disconnected or wasn’t connected yet.
- exception trainlib.exc.TrainNotFoundError
Bases:
intelino.trainlib_async.exc.TrainlibError
If the train we search for, or no train at all is found.