ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示
/doc/efuns/catch
ccccaaaattttcccchhhh((((3333)))) MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444)))) ccccaaaattttcccchhhh((((3333))))
NNNNAAAAMMMMEEEE
catch() - catch an evaluation error
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
mixed catch( mixed expr );
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Evaluate . If there is no error, 0 is returned. If
there is a standard error, a string (with a leading '*')
will be returned.
The function throw() can also be used to immediately return
any value, except 0. catch() is not really a function call,
but a directive to the compiler.
The catch() is somewhat costly, and should not be used just
anywhere. Rather, use it at places where an error would
destroy consistency.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
error(3), throw(3), error_handler(4)
Page 1 (printed 3/16/95)