MCPcopy Create free account
hub / github.com/apache/qpid-proton-j / put

Method put

tests/python/proton_tests/codec.py:126–133  ·  view source on GitHub ↗

More informative exception from putters, include bad value

(self, putter, v)

Source from the content-addressed store, hash-verified

124
125
126 def put(self, putter, v):
127 """More informative exception from putters, include bad value"""
128 try:
129 putter(v)
130 except Exception:
131 etype, value, trace = sys.exc_info()
132 raise_(etype, etype("%s(%r): %s" % (putter.__name__, v, value)), trace)
133 return putter
134
135 # (bits, signed) for each integer type
136 INT_TYPES = {

Callers 2

_testArrayMethod · 0.95
_testMethod · 0.95

Calls 1

raise_Function · 0.90

Tested by

no test coverage detected