def build_fault(cls, e, tb, include_traceback=False):
 if hasattr(cls, '_amf_code'):
  code = cls._amf_code
 else:
  code = cls.__name__
 details = None
 if include_traceback:
  details = traceback.format_exception(cls, e, tb)
 return remoting.ErrorFault(code=code, description=unicode(e), details=details)

def build_fault ( cls , e , tb , include_traceback = False ) : if hasattr ( cls , '_amf_code' ) : code = cls . _amf_code else : code = cls . __name__ details = None if include_traceback : details = traceback . format_exception ( cls , e , tb ) return remoting . ErrorFault ( code = code , description = unicode ( e ) , details = details )
builds a l{errorfault<pyamf .