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