diff options
| author | shadchin <[email protected]> | 2023-08-25 19:48:27 +0300 | 
|---|---|---|
| committer | shadchin <[email protected]> | 2023-08-25 20:06:09 +0300 | 
| commit | d783799fa58045a0040dfaf20cc7a8cc39036ba8 (patch) | |
| tree | 9bc5fa1319692bff2573fe77f2857dad604f6e0f /library/cpp | |
| parent | b01a9fdde371a4ec63a973a8bdd69c4eba8842d5 (diff) | |
Add exception about HS_DB_VERSION_ERROR
Diffstat (limited to 'library/cpp')
| -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 d431f873983..ba85e9bbab4 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 << ")";              } | 
