2 General PyAFS utilities, such as error handling
9 class AFSException(Exception):
10 def __init__(self, errno):
12 self.strerror = afs_error_message(errno)
15 return "AFSException(%s)" % (self.errno)
18 return "[%s] %s" % (self.errno, self.strerror)
20 def pyafs_error(code):
22 initialize_ACFG_error_table()
23 initialize_KTC_error_table()
24 initialize_PT_error_table()
25 initialize_RXK_error_table()
26 initialize_U_error_table()
31 raise AFSException(code)