Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Rename fatal_exception to FatalException

  • Loading branch information...
commit 3bdd042a6e5077a43beaa4fe0608e998a33e1a6b 1 parent c4e53c7
ry authored May 26, 2009
2  src/file.cc
@@ -45,7 +45,7 @@ do {                                                                  \
45 45
     TryCatch try_catch;                                               \
46 46
     (*callback)->Call(Context::GetCurrent()->Global(), argc, argv);   \
47 47
     if(try_catch.HasCaught())                                         \
48  
-      node::fatal_exception(try_catch);                               \
  48
+      node::FatalException(try_catch);                               \
49 49
     free(callback);                                                   \
50 50
   }                                                                   \
51 51
 } while(0)
14  src/http.cc
@@ -98,7 +98,7 @@ HTTPConnection::on_message_begin (http_parser *parser)
98 98
   TryCatch try_catch;
99 99
   Local<Object> message_handler = on_message->NewInstance();
100 100
   if (try_catch.HasCaught()) {
101  
-    fatal_exception(try_catch);
  101
+    FatalException(try_catch);
102 102
     return -1;
103 103
   }
104 104
 
@@ -125,7 +125,7 @@ HTTPConnection::name (http_parser *parser, const char *buf, size_t len)       \
125 125
   Local<Value> argv[1] = { String::New(buf, len) };                           \
126 126
   Local<Value> ret = callback->Call(message_handler, 1, argv);                \
127 127
   if (ret.IsEmpty()) {                                                        \
128  
-    fatal_exception(try_catch);                                               \
  128
+    FatalException(try_catch);                                               \
129 129
     return -2;                                                                \
130 130
   }                                                                           \
131 131
   if (ret->IsFalse()) return -3;                                              \
@@ -201,7 +201,7 @@ HTTPConnection::on_headers_complete (http_parser *parser)
201 201
   TryCatch try_catch;
202 202
   Local<Value> ret = on_headers_complete->Call(message_handler, 0, NULL);
203 203
   if (ret.IsEmpty()) {
204  
-    fatal_exception(try_catch);
  204
+    FatalException(try_catch);
205 205
     return -2;
206 206
   }
207 207
   if (ret->IsFalse()) return -3;
@@ -246,7 +246,7 @@ HTTPConnection::on_body (http_parser *parser, const char *buf, size_t len)
246 246
   TryCatch try_catch;
247 247
   Local<Value> ret = on_body->Call(message_handler, 1, argv);
248 248
   if (ret.IsEmpty()) {
249  
-    fatal_exception(try_catch);
  249
+    FatalException(try_catch);
250 250
     return -2;
251 251
   }
252 252
   if (ret->IsFalse()) return -3;
@@ -273,7 +273,7 @@ HTTPConnection::on_message_complete (http_parser *parser)
273 273
   TryCatch try_catch;
274 274
   Local<Value> ret = on_msg_complete->Call(message_handler, 0, NULL);
275 275
   if (ret.IsEmpty()) {
276  
-    fatal_exception(try_catch);
  276
+    FatalException(try_catch);
277 277
     return -2;
278 278
   }
279 279
   if (ret->IsFalse()) return -3;
@@ -356,7 +356,7 @@ HTTPServer::OnConnection (struct sockaddr *addr, socklen_t len)
356 356
     HTTPConnection::server_constructor_template->GetFunction()->NewInstance(0, NULL);
357 357
 
358 358
   if (connection_handle.IsEmpty()) {
359  
-    fatal_exception(try_catch);
  359
+    FatalException(try_catch);
360 360
     return NULL;
361 361
   }
362 362
 
@@ -370,7 +370,7 @@ HTTPServer::OnConnection (struct sockaddr *addr, socklen_t len)
370 370
   Local<Value> ret = connection_handler->Call(handle_, 1, argv);
371 371
 
372 372
   if (ret.IsEmpty())
373  
-    fatal_exception(try_catch);
  373
+    FatalException(try_catch);
374 374
 
375 375
   return connection;
376 376
 }
8  src/net.cc
@@ -419,7 +419,7 @@ Connection::OnReceive (const void *buf, size_t len)
419 419
   callback->Call(handle_, argc, argv);
420 420
 
421 421
   if (try_catch.HasCaught())
422  
-    fatal_exception(try_catch);
  422
+    FatalException(try_catch);
423 423
 }
424 424
 
425 425
 #define DEFINE_SIMPLE_CALLBACK(name, symbol)                        \
@@ -432,7 +432,7 @@ void name ()                                                        \
432 432
   TryCatch try_catch;                                               \
433 433
   callback->Call(handle_, 0, NULL);                                 \
434 434
   if (try_catch.HasCaught())                                        \
435  
-    node::fatal_exception(try_catch);                               \
  435
+    node::FatalException(try_catch);                               \
436 436
 }
437 437
 
438 438
 DEFINE_SIMPLE_CALLBACK(Connection::OnConnect, ON_CONNECT_SYMBOL)
@@ -500,7 +500,7 @@ Acceptor::OnConnection (struct sockaddr *addr, socklen_t len)
500 500
     Connection::constructor_template->GetFunction()->NewInstance(0, NULL);
501 501
   
502 502
   if (connection_handle.IsEmpty()) {
503  
-    fatal_exception(try_catch);
  503
+    FatalException(try_catch);
504 504
     return NULL;
505 505
   }
506 506
 
@@ -514,7 +514,7 @@ Acceptor::OnConnection (struct sockaddr *addr, socklen_t len)
514 514
   Local<Value> ret = connection_handler->Call(handle_, 1, argv);
515 515
 
516 516
   if (ret.IsEmpty())
517  
-    fatal_exception(try_catch);
  517
+    FatalException(try_catch);
518 518
 
519 519
   return connection;
520 520
 }
2  src/node.cc
@@ -210,7 +210,7 @@ OnFatalError (const char* location, const char* message)
210 210
 
211 211
 
212 212
 void
213  
-node::fatal_exception (TryCatch &try_catch)
  213
+node::FatalException (TryCatch &try_catch)
214 214
 {
215 215
   ReportException(&try_catch);
216 216
   ::exit(1);
2  src/node.h
@@ -25,7 +25,7 @@ do {                                                                      \
25 25
 
26 26
 enum encoding {ASCII, UTF8, RAW};
27 27
 enum encoding ParseEncoding (v8::Handle<v8::Value> encoding_v);
28  
-void fatal_exception (v8::TryCatch &try_catch); 
  28
+void FatalException (v8::TryCatch &try_catch); 
29 29
 void eio_warmup (void); // call this before creating a new eio event.
30 30
 
31 31
 class ObjectWrap {
2  src/timer.cc
@@ -40,7 +40,7 @@ Timer::OnTimeout (EV_P_ ev_timer *watcher, int revents)
40 40
   TryCatch try_catch;
41 41
   callback->Call (timer->handle_, 0, NULL);
42 42
   if (try_catch.HasCaught())
43  
-    fatal_exception(try_catch);
  43
+    FatalException(try_catch);
44 44
 
45 45
   /* XXX i'm a bit worried if this is the correct test? 
46 46
    * it's rather crutial for memory leaks the conditional here test to see

0 notes on commit 3bdd042

Please sign in to comment.
Something went wrong with that request. Please try again.