SOLA
Loading...
Searching...
No Matches
invalid_message_exception.h
1// Copyright The SOLA Contributors
2//
3// Licensed under the MIT License.
4// For details on the licensing terms, see the LICENSE file.
5// SPDX-License-Identifier: MIT
6
7#ifndef MINHTON_INVALID_MESSAGE_EXCEPTION_H_
8#define MINHTON_INVALID_MESSAGE_EXCEPTION_H_
9
10#include <cstdint>
11#include <stdexcept>
12#include <string>
13
14#include "minhton/message/message_header.h"
15
16namespace minhton {
17
18class InvalidMessageException : public std::exception {
19public:
20 explicit InvalidMessageException(const MinhtonMessageHeader &header) noexcept;
21 ~InvalidMessageException() override = default;
22 const char *what() const noexcept override;
23
24private:
25 MessageType message_type_;
26 std::string error_message_;
27};
28
29} // namespace minhton
30#endif
Definition invalid_message_exception.h:18
Definition message_header.h:24
Definition minhton_watchdog_ns3.cpp:24
MessageType
Definition types.h:17