Creates a not allowed operation error.
| 161 | |
| 162 | /// Creates a not allowed operation error. |
| 163 | static Error not_allowed(const std::string &msg) { |
| 164 | return Error(ErrorCode::NotAllowed, msg); |
| 165 | } |
| 166 | |
| 167 | /// Creates a struct version mismatch error. |
| 168 | static Error struct_version_mismatch(const std::string &msg) { |