closeSync();
}
- void ClientChannel::closeSync() throw(ErrorIO &, ErrorIllegalState &)
+ void ClientChannel::closeSync()
+ throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
+ ErrorIllegalState &, ErrorIllegalParameter &)
{
#ifdef CLIENT_IPC_THREAD
if (isClosed() == false)
}
int ClientChannel::transmitSync(ByteArray command, ByteArray &result)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
+ throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &)
{
int rv = SCARD_ERROR_OK;
if (getSession()->getReader()->isSecureElementPresent() == true)
}
SessionHelper *Reader::openSessionSync()
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
+ throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &)
{
openedSession = NULL;
}
}
- ByteArray Session::getATRSync() throw (ErrorIO &, ErrorIllegalState &)
+ ByteArray Session::getATRSync()
+ throw (ExceptionBase &, ErrorIO &, ErrorSecurity &,
+ ErrorIllegalState &, ErrorIllegalParameter &)
{
ByteArray result;
if (getReader()->isSecureElementPresent() == true)
return result;
}
- void Session::closeSync() throw (ErrorIO &, ErrorIllegalState &)
+ void Session::closeSync()
+ throw (ExceptionBase &, ErrorIO &, ErrorSecurity &,
+ ErrorIllegalState &, ErrorIllegalParameter &)
{
Message msg;
int rv;
}
Channel *Session::openChannelSync(int id, ByteArray aid)
- throw (ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)
+ throw (ExceptionBase &, ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &)
{
openedChannel = NULL;
void *userParam);
void closeSync()
- throw(ErrorIO &, ErrorIllegalState &);
+ throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
+ ErrorSecurity &, ErrorIllegalParameter &);
int transmitSync(ByteArray command, ByteArray &result)
- throw(ErrorIO &, ErrorIllegalState &,
+ throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
ErrorIllegalParameter &, ErrorSecurity &);
friend class ClientDispatcher;
int openSession(openSessionCallback callback, void *userData);
SessionHelper *openSessionSync()
- throw(ErrorIO &, ErrorIllegalState &,
+ throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
ErrorIllegalParameter &, ErrorSecurity &);
friend class SEService;
static bool dispatcherCallback(void *message);
Channel *openChannelSync(int id, ByteArray aid)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
+ throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &);
public:
void closeChannels()
int getChannelCount(getChannelCountCallback callback, void * userData);
ByteArray getATRSync()
- throw(ErrorIO &, ErrorIllegalState &);
+ throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
+ ErrorIllegalState &, ErrorIllegalParameter &);
void closeSync()
- throw(ErrorIO &, ErrorIllegalState &);
+ throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
+ ErrorIllegalState &, ErrorIllegalParameter &);
Channel *openBasicChannelSync(ByteArray aid)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
+ throw(ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &);
Channel *openBasicChannelSync(unsigned char *aid, unsigned int length)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
+ throw(ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &);
Channel *openLogicalChannelSync(ByteArray aid)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
+ throw(ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &);
Channel *openLogicalChannelSync(unsigned char *aid, unsigned int length)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &);
+ throw(ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &);
unsigned int getChannelCountSync();
virtual int transmit(ByteArray command, transmitCallback callback, void *userData) = 0;
virtual void closeSync()
- throw(ErrorIO &, ErrorIllegalState &) = 0;
+ throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
+ ErrorIllegalState &, ErrorIllegalParameter &) = 0;
virtual int transmitSync(ByteArray command, ByteArray &result)
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &) = 0;
+ throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &) = 0;
};
} /* namespace smartcard_service_api */
{
public :
static void throwError(int errorCode)
- throw(ErrorIO &, ErrorSecurity &, ErrorIllegalState &,
- ErrorIllegalParameter &)
+ throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
+ ErrorIllegalState &, ErrorIllegalParameter &)
{
switch (errorCode)
{
virtual int openSession(openSessionCallback callback, void *userData) = 0;
virtual SessionHelper *openSessionSync()
- throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &)= 0;
+ throw(ExceptionBase &, ErrorIO &, ErrorIllegalState &,
+ ErrorIllegalParameter &, ErrorSecurity &)= 0;
};
} /* namespace smartcard_service_api */
virtual int openLogicalChannel(unsigned char *aid, unsigned int length, openChannelCallback callback, void *userData) = 0;
virtual ByteArray getATRSync()
- throw(ErrorIO &, ErrorIllegalState &) = 0;
+ throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
+ ErrorIllegalState &, ErrorIllegalParameter &) = 0;
virtual void closeSync()
- throw(ErrorIO &, ErrorIllegalState &) = 0;
+ throw(ExceptionBase &, ErrorIO &, ErrorSecurity &,
+ ErrorIllegalState &, ErrorIllegalParameter &) = 0;
virtual Channel *openBasicChannelSync(ByteArray aid)
throw(ErrorIO &, ErrorIllegalState &, ErrorIllegalParameter &, ErrorSecurity &) = 0;