| 28 | } |
| 29 | |
| 30 | size_t ErrorStorage::hash() const { |
| 31 | size_t hash = 0; |
| 32 | boost::hash_combine(hash, message.hash()); |
| 33 | boost::hash_combine(hash, stackTrace.hash()); |
| 34 | if (cause != nullptr) { |
| 35 | boost::hash_combine(hash, cause->hash()); |
| 36 | } |
| 37 | |
| 38 | return hash; |
| 39 | } |
| 40 | |
| 41 | Error::Error() = default; |
| 42 | Error::Error(StringBox message) : Error(std::move(message), StringBox(), nullptr) {} |
no test coverage detected