SOLA
Loading...
Searching...
No Matches
minhton
include
minhton
exception
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
16
namespace
minhton
{
17
18
class
InvalidMessageException
:
public
std::exception {
19
public
:
20
explicit
InvalidMessageException
(
const
MinhtonMessageHeader
&header)
noexcept
;
21
~InvalidMessageException
()
override
=
default
;
22
const
char
*what()
const
noexcept
override
;
23
24
private
:
25
MessageType
message_type_;
26
std::string error_message_;
27
};
28
29
}
// namespace minhton
30
#endif
minhton::InvalidMessageException
Definition
invalid_message_exception.h:18
minhton::MinhtonMessageHeader
Definition
message_header.h:24
minhton
Definition
minhton_watchdog_ns3.cpp:24
minhton::MessageType
MessageType
Definition
types.h:17
Generated by
1.9.8