コード例 #1
0
 def __str__(self):
     if (isinstance(self.client_addr, unicode)):
         s = self.client_addr.encode('utf8')
     else:
         s = self.client_addr
     return "%s: %s: %s" % \
         (m2.err_func_error_string(self.err), \
          s, \
          m2.err_reason_error_string(self.err))
コード例 #2
0
ファイル: Err.py プロジェクト: makinacorpus/M2Crypto
 def __str__(self):
     if (isinstance(self.client_addr, unicode)):
         s = self.client_addr.encode('utf8')
     else:
         s = self.client_addr
     return "%s: %s: %s" % \
         (m2.err_func_error_string(self.err), \
         s, \
         m2.err_reason_error_string(self.err))
コード例 #3
0
ファイル: RSA.py プロジェクト: pywbem/m2crypto
def rsa_error():
    raise RSAError(m2.err_reason_error_string(m2.err_get_error()))
コード例 #4
0
def get_error_reason(err):
    return m2.err_reason_error_string(err)
コード例 #5
0
def rsa_error():
    raise RSAError, m2.err_reason_error_string(m2.err_get_error())
コード例 #6
0
ファイル: EC.py プロジェクト: rossonet/Strumenti-RCloud
def ec_error():
    raise ECError, m2.err_reason_error_string(m2.err_get_error())
コード例 #7
0
 def __str__(self):
     return "%s: %s: %s" % \
         (m2.err_func_error_string(self.err), \
         self.client_addr, \
         m2.err_reason_error_string(self.err))
コード例 #8
0
ファイル: Err.py プロジェクト: makinacorpus/M2Crypto
def get_error_reason(err):
    return m2.err_reason_error_string(err)
コード例 #9
0
ファイル: EC.py プロジェクト: makinacorpus/M2Crypto
def ec_error():
    raise ECError(m2.err_reason_error_string(m2.err_get_error()))