code
This commit is contained in:
26
Plugins/MqttClient/Source/DTMqtt/MqttCPP/throw_.cpp
Normal file
26
Plugins/MqttClient/Source/DTMqtt/MqttCPP/throw_.cpp
Normal file
@ -0,0 +1,26 @@
|
||||
// Copyright 2023 Dexter.Wan. All Rights Reserved.
|
||||
// EMail: 45141961@qq.com
|
||||
|
||||
#include "throw_.h"
|
||||
#include "exception.h"
|
||||
#include "types.h"
|
||||
|
||||
void throw_::badcast()
|
||||
{
|
||||
throw bad_cast();
|
||||
}
|
||||
|
||||
void throw_::exception(int rc)
|
||||
{
|
||||
throw mqtt::exception(rc);
|
||||
}
|
||||
|
||||
void throw_::exception(int rc, const char* msg)
|
||||
{
|
||||
throw mqtt::exception(rc, msg);
|
||||
}
|
||||
|
||||
void throw_::exception(int rc, int reasonCode, const char* msg)
|
||||
{
|
||||
throw mqtt::exception(rc, (mqtt::ReasonCode)reasonCode, msg);
|
||||
}
|
Reference in New Issue
Block a user