Helper function for raising EvalScriptError exceptions cls - subclass you want to raise *args - arguments Fills in the state of execution for you.
(cls, *args)
| 380 | fExec = _CheckExec(vfExec) |
| 381 | |
| 382 | def err_raiser(cls, *args): |
| 383 | """Helper function for raising EvalScriptError exceptions |
| 384 | |
| 385 | cls - subclass you want to raise |
| 386 | |
| 387 | *args - arguments |
| 388 | |
| 389 | Fills in the state of execution for you. |
| 390 | """ |
| 391 | raise cls(*args, |
| 392 | sop=sop, |
| 393 | sop_data=sop_data, |
| 394 | sop_pc=sop_pc, |
| 395 | stack=stack, scriptIn=scriptIn, txTo=txTo, inIdx=inIdx, flags=flags, |
| 396 | altstack=altstack, vfExec=vfExec, pbegincodehash=pbegincodehash, nOpCount=nOpCount[0]) |
| 397 | |
| 398 | |
| 399 | if sop in DISABLED_OPCODES: |
no outgoing calls
no test coverage detected