Creates a struct version mismatch error.
| 166 | |
| 167 | /// Creates a struct version mismatch error. |
| 168 | static Error struct_version_mismatch(const std::string &msg) { |
| 169 | return Error(ErrorCode::StructVersionMismatch, msg); |
| 170 | } |
| 171 | |
| 172 | /// Creates an out of memory error. |
| 173 | static Error out_of_memory(const std::string &msg) { |