-
Error superclass of all Errors Inherits from: Object : Exception Error and its subclasses separate different types of error is that can occur in the SuperCollider program into distinct classes, so that they can be reported differently to th ...
-
Exception root error class Inherits from: Object The root of SuperCollider's error handling mechanism. Exception is an abstract class, defining basic error behavior. This class is not directly used in SuperCollider. Users may create subclas ...
-
Understanding errors 1. Reading error dumps 2. Error objects and error handling 3. Common primitive errors 4. A common network error 5. A common warning 1. Reading error dumps When sc3 reports an error to the user, there are usually three p ...
-
... ly in a program? Are statements terminated by semi-colons? If syntax or grammar errors are found, SuperCollider writes a notification to the post window. Such messages are descriptive but terse. • ERROR: Parse error in file 'selected text' ...
-
Runtime errors Runtime errors occur while a program is executing. //////////////////////////////////////////////////////////////////////////////////////////////////// Common errors 1. an object receives a message which it doesn't understand ...
-
Pprotect evaluate a function when an error occured in the thread superclass: FilterPattern Pprotect(pattern func) pattern any pattern func the function to be evaluated when an error occurs. The error and the thread are passed as arguments t ...
-
... iver. If an exception is thrown the catch function handler is executed with the error as an argument. handler itself can rethrow the error if desired. protect(handler) Executes the receiver. The cleanup function handler is executed with an ...
-
... does supply information, it's usually to describe either a syntax or a runtime error. When SuperCollider doesn't give information, it's often because the code works but not as expected. Example of this are synths (nodes) that execute in th ...
-
... //////////////////////////////////////////////// Debugging 1_Debugging 2_Syntax_errors 3_Runtime_errors //////////////////////////////////////////////////////////////////////////////////////////////////// last revised: August 2, 2004 ////// ...
-
... imic language-style control methods: conditionals ( Pif ), loops ( Pwhile ) and error cleanup ( Pprotect ). Pif(condition, iftrue, iffalse, default): Evaluates a pattern 'condition' that returns true or false. Then, one value is taken from ...