Re: Output the method name as a string at runtime
Posted by
ASAM on
Jul 09, 2020; 7:15pm
URL: https://forum.world.st/Output-the-method-name-as-a-string-at-runtime-tp5119084p5119469.html
Thanks Ben,
in the meantime I come to a solution that looks like your second suggestion.
However, I use the already existing method signal: withTag: .
pduDestruct
| result |
result := call ffiPDUDestruct.
result = T_PDU_ERROR PDU_STATUS_NOERROR
ifFalse: [ DPDiagPduApError signal: thisContext selector asString withTag:
result item asString]
Although..... I like your solution almost a bit better.
What I like about your solution is, that throwing the exception (signal) is
somehow easier to see while looking.
Thanks
ASAM
--
Sent from:
http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html