MCPcopy
hub / github.com/wechatpy/wechatpy / __str__

Method __str__

wechatpy/exceptions.py:29–37  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 self.errmsg = errmsg
28
29 def __str__(self):
30 _repr = 'Error code: {code}, message: {msg}'.format(
31 code=self.errcode,
32 msg=self.errmsg
33 )
34 if six.PY2:
35 return to_binary(_repr)
36 else:
37 return to_text(_repr)
38
39 def __repr__(self):
40 _repr = '{klass}({code}, {msg})'.format(

Callers

nothing calls this directly

Calls 2

to_binaryFunction · 0.90
to_textFunction · 0.90

Tested by

no test coverage detected