09.03.2015 Views

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9.1 Runtime errors<br />

By default, a runtime error causes program execution to abort. Runtime errors are reported by<br />

name as well as by number. They are accompanied by an error traceback that shows the procedure<br />

call stack and value that caused the error, if there is one. The errors are listed below to illustrate<br />

the kinds of situations that can cause execution to terminate.<br />

The keyword &error turns runtime errors into expression failure. When an expression fails due<br />

to a converted runtime error, the keywords &errornumber, &errortext, and &errorvalue provide<br />

information about the nature of the error.<br />

101 integer expected or out of range<br />

102 numeric expected<br />

103 string expected<br />

104 cset expected<br />

105 file expected<br />

106 procedure or integer expected<br />

107 record expected<br />

108 list expected<br />

109 string or file expected<br />

110 string or list expected<br />

111 variable expected<br />

112 invalid type to size operation<br />

113 invalid type to random operation<br />

114 invalid type to subscript operation<br />

115 structure expected<br />

116 invalid type to element generator<br />

117 missing main procedure<br />

118 co-expression expected<br />

119 set expected<br />

120 two csets or two sets expected<br />

121 function not supported<br />

122 set or table expected<br />

123 invalid type<br />

124 table expected<br />

125 list, record, or set expected<br />

126 list or record expected<br />

140 window expected<br />

141 program terminated by window manager<br />

142 attempt to read/write on closed window<br />

143 malformed event queue<br />

144 window system error<br />

145 bad window attribute<br />

146 incorrect number of arguments to drawing function<br />

147 window attribute cannot be read or written as requested<br />

43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!