From: Theodore H. <tw...@do...> - 2000-04-18 16:29:38
|
"Francis G. McCabe" <fg...@ca...> wrote: > the list of codes I have come up with so far is: > > @table @code > @item 'matcherr > This is raised when a match failed in a situation where it is not safe > for it to do so. > @item 'privileged > This is raised when a privilege violation is flagged -- such as > attempting to execute a privileged operation, or an invalid access to > teh file system. > @item 'system > This is raised when the operation is potentially correct but the system > could not honour it -- due to space limitation for example. > @item 'exec > This is raised when attempting an illegal instruction or executing > non-valid code. > @item 'compval > This is raised when attempting to compare incomparible values -- such as > two code segments. > @item 'invalid > This is raised when arguments have invalid values -- such as attempting > to take the square root of a negative number. This is pretty broad. A separate 'list error would be useful -- like trying to take the head of an empty list, or to reduce a list of one element. Also 'bounds -- trying to reference a list index that is out of bounds. > @item 'arith > This is raised when an arithmetic operation raised a problem -- such as > divide by zero. > @item 'abort > This is raised when the user causes the system to abort. > @item 'fail > This is raised when an operation fails -- such as attempting to open a > nn-existent for reading. Also pretty broad -- I'd like to see this expanded a bit more, maybe like 'io (file I/O error), 'net (network error), any others? > @item 'eof > This is raised when attempting to read past the end of file. > @end table Where does a cast error go? (trying to unsuccessfully cast a value from one type to another, like number%%"qqq"). theo |