/usr/include/smartcardpp/SCError.h is in libsmartcardpp-dev 0.3.0-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | /*
* SMARTCARDPP
*
* This software is released under either the GNU Library General Public
* License (see LICENSE.LGPL) or the BSD License (see LICENSE.BSD).
*
* Note that the only valid version of the LGPL license as far as this
* project is concerned is the original GNU Library General Public License
* Version 2.1, February 1999
*
*/
#pragma once
#include <stdexcept>
/// Exception class for smartcard subsystem errors
/** Smartcard subsystem errors, like reader busy etc. Currently these are only
thrown for PCSCManager, but CTAPI should derive its own from here and throw them
as well */
class SCError :
public std::runtime_error
{
const SCError operator=(const SCError &);
protected:
std::string desc;
public:
const long error; //SC Api returns longs
SCError(long err);
virtual ~SCError() throw() {}
virtual const char * what() const throw() { return desc.c_str();}
static void check(long err);
};
|