5. Exceptions
Re-export from the async library.
- exception trainlib.exc.TrainlibError
Bases:
ExceptionBase error.
- exception trainlib.exc.TrainCommandError
Bases:
intelino.trainlib_async.exc.TrainlibErrorCommand building error.
- exception trainlib.exc.TrainMessageInterpretationError
Bases:
intelino.trainlib_async.exc.TrainlibErrorStructure unpacking failed.
- exception trainlib.exc.TrainMessageLengthError
Bases:
intelino.trainlib_async.exc.TrainlibErrorThe length of the received message is shorter than expected and cannot be parsed.
- exception trainlib.exc.TrainMessageTypeError
Bases:
intelino.trainlib_async.exc.TrainlibErrorIncorrect message type was expected.
- exception trainlib.exc.TrainNotConnectedError
Bases:
intelino.trainlib_async.exc.TrainlibErrorIn case the train disconnected or wasn’t connected yet.
- exception trainlib.exc.TrainNotFoundError
Bases:
intelino.trainlib_async.exc.TrainlibErrorIf the train we search for, or no train at all is found.