Lines Matching defs:error
305 // If it's not an error, but something needs to be printed out because
358 Local<Value> error,
365 CHECK(!error.IsEmpty());
369 AppendExceptionLine(env, error, message, FATAL_ERROR);
373 env->inspector_agent()->ReportUncaughtException(error, message);
379 bool decorated = IsExceptionDecorated(env, error);
381 if (!error->IsObject()) { // We can only enhance actual errors.
384 // If error is not an object, AppendExceptionLine() has already print the
389 Local<Object> err_obj = error.As<Object>();
442 if (error->IsObject()) {
443 Local<Object> err_obj = error.As<Object>();
450 // Not an error object. Just print as-is.
451 node::Utf8Value message(env->isolate(), error);
484 TriggerNodeReport(env, report_message.c_str(), "Exception", "", error);
930 void PerIsolateMessageListener(Local<Message> message, Local<Value> error) {
951 TriggerUncaughtException(isolate, error, message);
1087 Local<Value> error,
1090 CHECK(!error.IsEmpty());
1093 if (message.IsEmpty()) message = Exception::CreateMessage(isolate, error);
1102 // error is supposed to be thrown at this point.
1106 FormatCaughtException(isolate, context, error, message));
1123 env, error, message, EnhanceFatalException::kDontEnhance);
1135 // if process._fatalException() throws an error, we don't want it to
1139 Local<Value> argv[2] = { error,
1166 ReportFatalException(env, error, message, EnhanceFatalException::kEnhance);