ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/doc/applies/master/error_handler

HOME :: doc :: applies :: master :: error_handler

     eeeerrrrrrrroooorrrr____hhhhaaaannnnddddlllleeeerrrr((((4444))))       MMMMuuuuddddOOOOSSSS ((((11118888 SSSSeeeepppp 1111999999994444))))       eeeerrrrrrrroooorrrr____hhhhaaaannnnddddlllleeeerrrr((((4444))))

     NNNNAAAAMMMMEEEE
          error_handler - function in master object to handle errors

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          void error_handler( mapping error, int caught );

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          This function allows the mudlib to handle errors instead of
          the driver.  The contents of the 'error' mapping are:

              ([
                  "error"   : string,     // the error
                  "program" : string,     // the program
                  "object"  : object,     // the current object
                  "line"    : int,        // the line number
                  "trace"   : mapping*    // a trace back
              ])

          Each line of traceback is a mapping containing the
          following:

              ([
                  "function"  : string,   // the function name
                  "program"   : string,   // the program
                  "object"    : object,   // the object
               "file"      : string,   // the file to which the line number refers
                  "line"      : int       // the line number
              ])
          The 'caught' flag is 1 if the error was trapped by catch().

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          catch(3), error(3), throw(3), log_error(4)

     AAAAUUUUTTTTHHHHOOOORRRR
          Beek

     Page 1                                          (printed 3/16/95)

HOME :: doc :: applies :: master :: error_handler