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

Reply via email to