200 |
if (getPointDataView().getRank()!=region.size()) { |
if (getPointDataView().getRank()!=region.size()) { |
201 |
throw DataException("Error - Invalid slice region."); |
throw DataException("Error - Invalid slice region."); |
202 |
} |
} |
203 |
if (otherTemp->getPointDataView().getRank()>0 && !other->getPointDataView().checkShape(regionShape)) { |
if (otherTemp->getPointDataView().getRank()>0 and !other->getPointDataView().checkShape(regionShape)) { |
204 |
throw DataException (other->getPointDataView().createShapeErrorMessage( |
throw DataException (other->getPointDataView().createShapeErrorMessage( |
205 |
"Error - Couldn't copy slice due to shape mismatch.",regionShape)); |
"Error - Couldn't copy slice due to shape mismatch.",regionShape)); |
206 |
} |
} |