diff options
author | shadchin <shadchin@yandex-team.com> | 2023-08-25 19:48:27 +0300 |
---|---|---|
committer | shadchin <shadchin@yandex-team.com> | 2023-08-25 20:06:09 +0300 |
commit | d783799fa58045a0040dfaf20cc7a8cc39036ba8 (patch) | |
tree | 9bc5fa1319692bff2573fe77f2857dad604f6e0f /library | |
parent | b01a9fdde371a4ec63a973a8bdd69c4eba8842d5 (diff) | |
download | ydb-d783799fa58045a0040dfaf20cc7a8cc39036ba8.tar.gz |
Add exception about HS_DB_VERSION_ERROR
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/regex/hyperscan/hyperscan.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/cpp/regex/hyperscan/hyperscan.cpp b/library/cpp/regex/hyperscan/hyperscan.cpp index d431f87398..ba85e9bbab 100644 --- a/library/cpp/regex/hyperscan/hyperscan.cpp +++ b/library/cpp/regex/hyperscan/hyperscan.cpp @@ -273,6 +273,8 @@ namespace NHyperscan { if (status != HS_SUCCESS) { if (status == HS_DB_PLATFORM_ERROR) { ythrow yexception() << "Serialized Hyperscan database is incompatible with current CPU"; + } else if (status == HS_DB_VERSION_ERROR) { + ythrow yexception() << "Need recreate Hyperscan database with new version Hyperscan"; } else { ythrow yexception() << "Failed to deserialize hyperscan database (status = " << status << ")"; } |