bt2: change some bt2.CreationError usages to ValueError
The bt2.CreationError exception type is reserved for cases where the
creation functions return None/NULL, which is usually because of
exhausted memory. Other exception types should be used for other
errors.
This patch fixes a few instances where bt2.CreationError is wrongly
used. Change them for ValueError, since they are cases of wrong
parameter value passed by the user. We have already used ValueError for
cases like these, for example in
_UserMessageIterator._create_packet_beginning_message.
Change-Id: Ib66943f8dc1200f7b589764c171bf4764741a6bd
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1383
Tested-by: jenkins
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
This page took 0.034434 seconds and 4 git commands to generate.