496
483
# We need to use the class name "GnuTLS" here, since this
497
484
# exception might be raised from within GnuTLS.__init__,
498
485
# which is called before the assignment to the "gnutls"
500
487
def __init__(self, message = None, code = None, args=()):
501
488
# Default usage is by a message string, but if a return
502
489
# code is passed, convert it to a string with
505
491
if message is None and code is not None:
506
492
message = GnuTLS.strerror(code)
507
493
return super(GnuTLS.Error, self).__init__(