File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,11 +194,11 @@ constexpr bool decode_hash(data_array<Size>& out,
194194}
195195
196196template <size_t Size>
197- constexpr data_array<Size> decode_hash (const std::string_view& in) NOEXCEPT
197+ constexpr data_array<Size> decode_hash (const std::string_view& in) THROWS
198198{
199199 data_array<Size> out{};
200200 if (!decode_hash (out, in))
201- return { };
201+ throw istream_exception{ " decode_hash " };
202202
203203 return out;
204204}
Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ template <size_t Size>
6969constexpr bool decode_hash (data_array<Size>& out,
7070 const std::string_view& in) NOEXCEPT;
7171
72- // / Returns null_hash on error.
72+ // / Throws istream_exception on input error.
7373template <size_t Size>
74- constexpr data_array<Size> decode_hash (const std::string_view& in) NOEXCEPT ;
74+ constexpr data_array<Size> decode_hash (const std::string_view& in) THROWS ;
7575
7676// / Literal decodings of hex string, errors reflected as zero-filled data.
7777// / ---------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments