Skip to content
Permalink
Browse files

utils, feat: add error code CALL_E_TIMEOUT.

  • Loading branch information...
xicilion committed Jul 27, 2018
1 parent ec542b4 commit 78a312a07301b2a11b471754f02079c388805a7f
Showing with 8 additions and 4 deletions.
  1. +6 −4 fibjs/include/utils.h
  2. +2 −0 fibjs/src/base/utils.cpp
@@ -155,14 +155,16 @@ typedef int32_t result_t;
#define CALL_E_GUICALL (CALL_E_MAX - 19)
// Internal error.
#define CALL_E_INTERNAL (CALL_E_MAX - 20)
// The maximum amount of time for a script to execute was exceeded.
#define CALL_E_TIMEOUT (CALL_E_MAX - 21)
// Invalid return type.
#define CALL_E_RETURN_TYPE (CALL_E_MAX - 21)
#define CALL_E_RETURN_TYPE (CALL_E_MAX - 22)
// Exception occurred.
#define CALL_E_EXCEPTION (CALL_E_MAX - 22)
#define CALL_E_EXCEPTION (CALL_E_MAX - 23)
// JavaScript error.
#define CALL_E_JAVASCRIPT (CALL_E_MAX - 23)
#define CALL_E_JAVASCRIPT (CALL_E_MAX - 24)
// Permission denied
#define CALL_E_PERMIT (CALL_E_MAX - 24)
#define CALL_E_PERMIT (CALL_E_MAX - 25)

#define CALL_E_MIN -100100

@@ -64,6 +64,8 @@ exlib::string getResultMessage(result_t hr)
"Operation is GUI call.",
// CALL_E_INTERNAL
"Internal error.",
// CALL_E_TIMEOUT
"The maximum amount of time for a script to execute was exceeded.",
// CALL_E_RETURN_TYPE
"Invalid return type.",
// CALL_E_EXCEPTION

0 comments on commit 78a312a

Please sign in to comment.
You can’t perform that action at this time.