Jack OS Error Codes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Jack OS Error Codes

cadet1620
Administrator
The file OSErrors.txt seems to have disappeared from the distribution. It used to be in projects/09.
Jack OS Error Codes

Code Method/Function       Description
---- ---------------       -----------------------------------------------
 1   Sys.wait              Duration must be positive
 2   Array.new             Array size must be positive
 3   Math.divide           Division by zero
 4   Math.sqrt             Cannot compute square root of a negative number
 5   Memory.alloc          Allocated memory size must be positive
 6   Memory.alloc          Heap overflow
 7   Screen.drawPixel      Illegal pixel coordinates
 8   Screen.drawLine       Illegal line coordinates
 9   Screen.drawRectangle  Illegal rectangle coordinates
12   Screen.drawCircle     Illegal center coordinates
13   Screen.drawCircle     Illegal radius
14   String.new            Maximum length must be non-negative
15   String.charAt         String index out of bounds
16   String.setCharAt      String index out of bounds
17   String.appendChar     String is full
18   String.eraseLastChar  String is empty
19   String.setInt         Insufficient string capacity
20   Output.moveCursor     Illegal cursor location

--Mark