mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-08 00:24:00 +02:00
C++ exceptions now propagate through python
This commit is contained in:
parent
a8149abeec
commit
821f394602
3 changed files with 34 additions and 31 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
using namespace std;
|
||||
|
||||
NFCDevice::NFCDevice():
|
||||
NFCDevice::NFCDevice() throw(NFCError):
|
||||
pollNr(20),
|
||||
pollPeriod(2),
|
||||
_nfcContext(NULL),
|
||||
|
@ -29,7 +29,7 @@ NFCDevice::~NFCDevice()
|
|||
nfc_exit(_nfcContext);
|
||||
}
|
||||
|
||||
void NFCDevice::open()
|
||||
void NFCDevice::open() throw(NFCError)
|
||||
{
|
||||
if (opened()) {
|
||||
return;
|
||||
|
@ -60,7 +60,7 @@ void NFCDevice::close()
|
|||
_opened = false;
|
||||
}
|
||||
|
||||
std::string NFCDevice::scanUID()
|
||||
std::string NFCDevice::scanUID() throw(NFCError)
|
||||
{
|
||||
int res;
|
||||
nfc_target nt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue