aboutsummaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2021-10-12 09:23:22 +0000
committerHåvard Pettersen <havardpe@oath.com>2021-10-12 09:24:31 +0000
commit555766f3e9b0d2898870f5e9f9c29e4b337aa7da (patch)
treee2e83d35a96c3f7e61f73e30fb086d118b8e09e2 /eval
parent7287be4ea675f2fce66bdc528b56719b56079e4c (diff)
central classification of 'unsafe' exceptions
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/eval/value_codec.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/eval/src/vespa/eval/eval/value_codec.cpp b/eval/src/vespa/eval/eval/value_codec.cpp
index 386a8f3dc7e..369ffb85133 100644
--- a/eval/src/vespa/eval/eval/value_codec.cpp
+++ b/eval/src/vespa/eval/eval/value_codec.cpp
@@ -324,9 +324,8 @@ std::unique_ptr<Value> decode_value(nbostream &input, const ValueBuilderFactory
const size_t num_blocks = maybe_decode_num_blocks(input, (num_mapped_dims > 0), format);
DecodeState state{type, dense_subspace_size, num_blocks, num_mapped_dims};
return typify_invoke<1,TypifyCellType,ContentDecoder>(type.cell_type(), input, state, factory);
- } catch (const OOMException &) {
- throw;
} catch (const Exception &e) {
+ rethrow_if_unsafe(e);
throw DecodeValueException("failed to decode value", e);
}
}