2 summary:: evaluate a function when an error occured in the thread
3 related:: Classes/Ptrace
4 categories:: Streams-Patterns-Events>Patterns>Language Control
14 a link::Classes/Function:: to be evaluated when an error occurs. The error and the thread are passed as arguments to the function.
21 var func = { "an error happened".postln };
22 a = Pprotect(Pseq([1, 3, 3, Pfuncn({ Error.throw }), 2]), func);
23 x = Pbind(\degree, a, \dur, 0.5).play;