}
public:
- void next(bt2::ConstMessageArray& messages)
+ void next(ConstMessageArray& messages)
{
/* Any saved error? Now is the time to throw */
if (G_UNLIKELY(_mExcToThrowType != _ExcToThrowType::NONE)) {
/* Throw the corresponding exception */
if (_mExcToThrowType == _ExcToThrowType::ERROR) {
- throw bt2::Error {};
+ throw Error {};
} else {
BT_ASSERT(_mExcToThrowType == _ExcToThrowType::MEM_ERROR);
- throw bt2::MemoryError {};
+ throw MemoryError {};
}
}
/* We're done: everything below is exception handling */
return;
- } catch (const bt2::TryAgain&) {
+ } catch (const TryAgain&) {
if (messages.isEmpty()) {
throw;
}
}
_mExcToThrowType = _ExcToThrowType::MEM_ERROR;
- } catch (const bt2::Error&) {
+ } catch (const Error&) {
if (messages.isEmpty()) {
throw;
}