bt2: remove NonexistentClockSnapshot exception type
[babeltrace.git] / src / bindings / python / bt2 / bt2 / message.py
index aeb9ebd8d8a2c1b9f0b97ff9471d917daff0d7d7..5a1ca32dea78900b45c61b71e56941dab810c2ae 100644 (file)
@@ -40,7 +40,7 @@ class _Message(object._SharedObject):
     @staticmethod
     def _check_has_default_clock_class(clock_class):
         if clock_class is None:
-            raise bt2.NonexistentClockSnapshot(
+            raise ValueError(
                 'cannot get default clock snapshot: stream class has no default clock class'
             )
 
@@ -180,7 +180,7 @@ class _DiscardedMessage(_Message, _MessageWithDefaultClockSnapshot):
 
     def _check_has_default_clock_snapshots(self):
         if not self._has_default_clock_snapshots:
-            raise bt2.NonexistentClockSnapshot(
+            raise ValueError(
                 'cannot get default clock snapshot: such a message has no clock snapshots for this stream class'
             )
 
This page took 0.023115 seconds and 4 git commands to generate.