An exception could not be caught when calling XLWorksheet::range on the empty sheet. The cause of the problem lies in the noexcept specifier of the function XLCellReference XLWorksheet::lastCell() const noexcept, which prevents exception propagation.
XLCellReference XLWorksheet::lastCell() const noexcept { return { rowCount(), columnCount() }; }
XLCellReference::XLCellReference(uint32_t row, uint16_t column)
{
if (!addressIsValid(row, column)) throw XLCellAddressError("Cell reference is invalid");
setRowAndColumn(row, column);
}
An exception could not be caught when calling XLWorksheet::range on the empty sheet. The cause of the problem lies in the noexcept specifier of the function XLCellReference XLWorksheet::lastCell() const noexcept, which prevents exception propagation.
XLCellReference XLWorksheet::lastCell() const noexcept { return { rowCount(), columnCount() }; }
XLCellReference::XLCellReference(uint32_t row, uint16_t column)
{
if (!addressIsValid(row, column)) throw XLCellAddressError("Cell reference is invalid");
setRowAndColumn(row, column);
}