Re: [Pharo-users] Output the method name as a string at runtime

2020-07-09 Thread ASAM
Thanks Ben, in the meantime I come to a solution that looks like your second suggestion. However, I use the already existing methodsignal: withTag: . pduDestruct | result | result := call ffiPDUDestruct. result = T_PDU_ERROR PDU_STATUS_NOERROR ifFalse: [ DPD

Re: [Pharo-users] Output the method name as a string at runtime

2020-07-07 Thread Ben Coman
Sorry for the slow response. Perhaps you've already worked it out, but anyway a few options... You "could" pass thisContext as a block parameter initialize errorBlock := [ :tPduError :aContext | Error signal:'Method: ' , aContext selector asString , ' with result: ', tPduError item asStr

[Pharo-users] Output the method name as a string at runtime

2020-06-27 Thread ASAM
Hello, I would like to output the method name as a string in case of an error. what I've already done is this: (with thisContext selector asString) pduDestruct | result | result := call ffiPDUDestruct. result = T_PDU_ERROR PDU_STATUS_NOERROR ifFalse: [ Error signal:'Meth