internal static HandleRef getCPtr(PTEID_ExCertNoRoot obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
static void SetPendingCustomException(Int32 pteid_excode) { PTEID_Exception ex; if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_PARAM_RANGE) ex = new PTEID_ExParamRange(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_BAD_USAGE) ex = new PTEID_ExBadUsage(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_NOT_SUPPORTED) ex = new PTEID_ExCmdNotSupported(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_NO_CARD) ex = new PTEID_ExNoCardPresent(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_CMD_NOT_ALLOWED) ex = new PTEID_ExCmdNotAllowed(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_NO_READER) ex = new PTEID_ExNoReader(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_UNKNOWN) ex = new PTEID_ExUnknown(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_DOCTYPE_UNKNOWN) ex = new PTEID_ExDocTypeUnknown(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_CARDTYPE_BAD) ex = new PTEID_ExCardBadType(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_CARDTYPE_UNKNOWN) ex = new PTEID_ExCardTypeUnknown(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_CERT_NOISSUER) ex = new PTEID_ExCertNoIssuer(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_RELEASE_NEEDED) ex = new PTEID_ExReleaseNeeded(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_BAD_TRANSACTION) ex = new PTEID_ExBadTransaction(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_FILETYPE_UNKNOWN) ex = new PTEID_ExFileTypeUnknown(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_CARD_CHANGED) ex = new PTEID_ExCardChanged(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_READERSET_CHANGED)ex = new PTEID_ExReaderSetChanged(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_NOT_ALLOW_BY_USER)ex = new PTEID_ExNotAllowByUser(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_CERT_NOCRL) ex = new PTEID_ExCertNoCrl(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_CERT_NOOCSP) ex = new PTEID_ExCertNoOcsp(); else if(pteid_excode==pteidlib_dotNet.EIDMW_ERR_CERT_NOROOT) ex = new PTEID_ExCertNoRoot(); else ex = new PTEID_Exception(pteid_excode); SWIGPendingException.Set(ex); }