cdef int _init = 0
class AFSException(Exception):
- def __init__(self, errno, message):
+ def __init__(self, errno):
self.errno = errno
self.strerror = afs_error_message(errno)
- self.message = message
def __repr__(self):
- return "AFSException(%s, %s)" % (self.errno, self.message)
+ return "AFSException(%s)" % (self.errno)
def __str__(self):
- return "[%s] (%s) while %s" % (self.errno, self.strerror, self.message)
+ return "[%s] %s" % (self.errno, self.strerror)
-def pyafs_error(code, msg):
+def pyafs_error(code):
if not _init:
initialize_ACFG_error_table()
initialize_KTC_error_table()
_init = 1
if code != 0:
- raise AFSException(code, msg)
+ raise AFSException(code)