32
32
#include < QTcpSocket>
33
33
34
34
#include < cstddef>
35
+ #include < stdexcept>
35
36
#include < exception>
36
37
#include < list>
37
38
#include < optional>
@@ -50,16 +51,16 @@ class QTimer;
50
51
namespace WebSocket
51
52
{
52
53
// / All exceptions thrown by the code below are derived from this base type.
53
- struct Exception : public std ::runtime_error { Exception(const QString &s); ~Exception () override ; };
54
+ struct Exception : public std ::runtime_error { Exception(const QString &s); ~Exception (); };
54
55
// / May be thrown by the various Ser and Deser functions if the arguments supplied are bad.
55
- struct BadArgs : public Exception { using Exception::Exception; ~BadArgs () override ; };
56
+ struct BadArgs : public Exception { using Exception::Exception; ~BadArgs (); };
56
57
// / May be thrown in rare cases if there are assertion failure in the code (shouldn't normally happen).
57
- struct InternalError : public Exception { using Exception::Exception; ~InternalError () override ; };
58
+ struct InternalError : public Exception { using Exception::Exception; ~InternalError (); };
58
59
// / All higher level errors are a type of this exception (but some functions may throw BadArgs or InternalError
59
60
// / as well)
60
- struct Error : public Exception { using Exception::Exception; ~Error () override ; };
61
+ struct Error : public Exception { using Exception::Exception; ~Error (); };
61
62
// / Thrown if the parsed or generated data exceeds INT_MAX
62
- struct MessageTooBigError : public Error { using Error::Error; ~MessageTooBigError () override ; };
63
+ struct MessageTooBigError : public Error { using Error::Error; ~MessageTooBigError (); };
63
64
64
65
// / Default to 4096-byte fragments.
65
66
inline constexpr std::size_t DefaultFragmentSize = 4096 ;
@@ -212,7 +213,7 @@ namespace WebSocket
212
213
};
213
214
214
215
// / Thrown if the incoming wire data is out-of-spec and/or invalid.
215
- struct ProtocolError : public Error { using Error::Error; ~ProtocolError () override ; };
216
+ struct ProtocolError : public Error { using Error::Error; ~ProtocolError (); };
216
217
217
218
enum MaskEnforcement {
218
219
DontCare = 0 ,
0 commit comments