/usr/share/SuperCollider/HelpSource/Classes/Pprotect.schelp is in supercollider-common 1:3.8.0~repack-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | class:: Pprotect
summary:: evaluate a function when an error occured in the thread
related:: Classes/Ptrace
categories:: Streams-Patterns-Events>Patterns>Language Control
ClassMethods::
method::new
argument::pattern
any pattern
argument::func
a link::Classes/Function:: to be evaluated when an error occurs. The error and the thread are passed as arguments to the function.
Examples::
code::
(
var x;
var func = { "an error happened".postln };
a = Pprotect(Pseq([1, 3, 3, Pfuncn({ Error.throw }), 2]), func);
x = Pbind(\degree, a, \dur, 0.5).play;
)
::
|