@@ -58,7 +58,7 @@ static /*size_t*/ v8::Handle<v8::Value> msgGetMethod(const v8::Arguments& args/*
58
58
OSS::SIP::SIPCSeq hCSeq (cseq.c_str ());
59
59
return v8::String::New (hCSeq.getMethod ().c_str ());
60
60
}
61
- catch (OSS::Exception e)
61
+ catch (const OSS::Exception& e)
62
62
{
63
63
std::ostringstream msg;
64
64
msg << " JavaScript->C++ Exception: msgGetMethod - " << e.message ();
@@ -85,7 +85,7 @@ static /*size_t*/ v8::Handle<v8::Value> msgHdrPresent(const v8::Arguments& args/
85
85
{
86
86
return v8::Boolean::New (pMsg->hdrPresent (headerName.c_str ()));
87
87
}
88
- catch (OSS::Exception e)
88
+ catch (const OSS::Exception& e)
89
89
{
90
90
std::ostringstream msg;
91
91
msg << " JavaScript->C++ Exception: msgHdrPresent - " << e.message ();
@@ -112,7 +112,7 @@ static /*size_t*/ v8::Handle<v8::Value> msgHdrGetSize(const v8::Arguments& args
112
112
{
113
113
return v8::Integer::New (pMsg->hdrGetSize (headerName.c_str ()));
114
114
}
115
- catch (OSS::Exception e)
115
+ catch (const OSS::Exception& e)
116
116
{
117
117
std::ostringstream msg;
118
118
msg << " JavaScript->C++ Exception: msgHdrGetSize - " << e.message ();
@@ -144,7 +144,7 @@ static /*const std::string&*/ v8::Handle<v8::Value> msgHdrGet(const v8::Argument
144
144
145
145
return v8::String::New (pMsg->hdrGet (headerName.c_str ()).c_str ());
146
146
}
147
- catch (OSS::Exception e)
147
+ catch (const OSS::Exception& e)
148
148
{
149
149
std::ostringstream msg;
150
150
msg << " JavaScript->C++ Exception: msgHdrGet - " << e.message ();
@@ -179,7 +179,7 @@ static /*bool*/ v8::Handle<v8::Value> msgHdrSet(const v8::Arguments& args/*const
179
179
{
180
180
return v8::Boolean::New (pMsg->hdrSet (headerName.c_str (), headerValue, index ));
181
181
}
182
- catch (OSS::Exception e)
182
+ catch (const OSS::Exception& e)
183
183
{
184
184
std::ostringstream msg;
185
185
msg << " JavaScript->C++ Exception: msgHdrSet - " << e.message ();
@@ -206,7 +206,7 @@ static /*bool*/ v8::Handle<v8::Value> msgHdrRemove(const v8::Arguments& args/*co
206
206
{
207
207
return v8::Boolean::New (pMsg->hdrRemove (headerName.c_str ()));
208
208
}
209
- catch (OSS::Exception e)
209
+ catch (const OSS::Exception& e)
210
210
{
211
211
std::ostringstream msg;
212
212
msg << " JavaScript->C++ Exception: msgHdrRemove - " << e.message ();
@@ -237,7 +237,7 @@ static /*bool*/ v8::Handle<v8::Value> msgHdrListAppend(const v8::Arguments& args
237
237
{
238
238
return v8::Boolean::New (pMsg->hdrListAppend (headerName.c_str (), headerValue));
239
239
}
240
- catch (OSS::Exception e)
240
+ catch (const OSS::Exception& e)
241
241
{
242
242
std::ostringstream msg;
243
243
msg << " JavaScript->C++ Exception: msgHdrListAppend - " << e.message ();
@@ -268,7 +268,7 @@ static /*bool*/ v8::Handle<v8::Value> msgHdrListPrepend(const v8::Arguments& arg
268
268
{
269
269
return v8::Boolean::New (pMsg->hdrListPrepend (headerName.c_str (), headerValue));
270
270
}
271
- catch (OSS::Exception e)
271
+ catch (const OSS::Exception& e)
272
272
{
273
273
std::ostringstream msg;
274
274
msg << " JavaScript->C++ Exception: msgHdrListPrepend - " << e.message ();
@@ -295,7 +295,7 @@ static /*std::string*/ v8::Handle<v8::Value> msgHdrListPopFront(const v8::Argume
295
295
{
296
296
return v8::String::New (pMsg->hdrListPopFront (headerName.c_str ()).c_str ());
297
297
}
298
- catch (OSS::Exception e)
298
+ catch (const OSS::Exception& e)
299
299
{
300
300
std::ostringstream msg;
301
301
msg << " JavaScript->C++ Exception: msgHdrListPopFront - " << e.message ();
@@ -322,7 +322,7 @@ static /*bool*/ v8::Handle<v8::Value> msgHdrListRemove(const v8::Arguments& args
322
322
{
323
323
return v8::Boolean::New (pMsg->hdrListRemove (headerName.c_str ()));
324
324
}
325
- catch (OSS::Exception e)
325
+ catch (const OSS::Exception& e)
326
326
{
327
327
std::ostringstream msg;
328
328
msg << " JavaScript->C++ Exception: msgHdrListRemove - " << e.message ();
@@ -352,7 +352,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIsRequest(const v8::Argument
352
352
else
353
353
return v8::Boolean::New (pMsg->isRequest (method.c_str ()));
354
354
}
355
- catch (OSS::Exception e)
355
+ catch (const OSS::Exception& e)
356
356
{
357
357
std::ostringstream msg;
358
358
msg << " JavaScript->C++ Exception: msgIsRequest - " << e.message ();
@@ -376,7 +376,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIsResponse(const v8::Argument
376
376
{
377
377
return v8::Boolean::New (pMsg->isResponse ());
378
378
}
379
- catch (OSS::Exception e)
379
+ catch (const OSS::Exception& e)
380
380
{
381
381
std::ostringstream msg;
382
382
msg << " JavaScript->C++ Exception: msgIsResponse - " << e.message ();
@@ -399,7 +399,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIs1xx(const v8::Arguments& ar
399
399
{
400
400
return v8::Boolean::New (pMsg->is1xx ());
401
401
}
402
- catch (OSS::Exception e)
402
+ catch (const OSS::Exception& e)
403
403
{
404
404
std::ostringstream msg;
405
405
msg << " JavaScript->C++ Exception: msgIs1xx - " << e.message ();
@@ -422,7 +422,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIs2xx(const v8::Arguments& ar
422
422
{
423
423
return v8::Boolean::New (pMsg->is2xx ());
424
424
}
425
- catch (OSS::Exception e)
425
+ catch (const OSS::Exception& e)
426
426
{
427
427
std::ostringstream msg;
428
428
msg << " JavaScript->C++ Exception: msgIs2xx - " << e.message ();
@@ -445,7 +445,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIs3xx(const v8::Arguments& ar
445
445
{
446
446
return v8::Boolean::New (pMsg->is3xx ());
447
447
}
448
- catch (OSS::Exception e)
448
+ catch (const OSS::Exception& e)
449
449
{
450
450
std::ostringstream msg;
451
451
msg << " JavaScript->C++ Exception: msgIs3xx - " << e.message ();
@@ -468,7 +468,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIs4xx(const v8::Arguments& ar
468
468
{
469
469
return v8::Boolean::New (pMsg->is4xx ());
470
470
}
471
- catch (OSS::Exception e)
471
+ catch (const OSS::Exception& e)
472
472
{
473
473
std::ostringstream msg;
474
474
msg << " JavaScript->C++ Exception: msgIs4xx - " << e.message ();
@@ -491,7 +491,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIs5xx(const v8::Arguments& ar
491
491
{
492
492
return v8::Boolean::New (pMsg->is5xx ());
493
493
}
494
- catch (OSS::Exception e)
494
+ catch (const OSS::Exception& e)
495
495
{
496
496
std::ostringstream msg;
497
497
msg << " JavaScript->C++ Exception: msgIs5xx - " << e.message ();
@@ -514,7 +514,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIs6xx(const v8::Arguments& ar
514
514
{
515
515
return v8::Boolean::New (pMsg->is6xx ());
516
516
}
517
- catch (OSS::Exception e)
517
+ catch (const OSS::Exception& e)
518
518
{
519
519
std::ostringstream msg;
520
520
msg << " JavaScript->C++ Exception: msgIs6xx - " << e.message ();
@@ -539,7 +539,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIsResponseFamily(const v8::Ar
539
539
{
540
540
return v8::Boolean::New (pMsg->isResponseFamily (responseCode));
541
541
}
542
- catch (OSS::Exception e)
542
+ catch (const OSS::Exception& e)
543
543
{
544
544
std::ostringstream msg;
545
545
msg << " JavaScript->C++ Exception: msgIsResponseFamily - " << e.message ();
@@ -563,7 +563,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIsErrorResponse(const v8::Arg
563
563
{
564
564
return v8::Boolean::New (pMsg->isErrorResponse ());
565
565
}
566
- catch (OSS::Exception e)
566
+ catch (const OSS::Exception& e)
567
567
{
568
568
std::ostringstream msg;
569
569
msg << " JavaScript->C++ Exception: msgIsErrorResponse - " << e.message ();
@@ -586,7 +586,7 @@ static /*boost::tribool*/ v8::Handle<v8::Value> msgIsMidDialog(const v8::Argumen
586
586
{
587
587
return v8::Boolean::New (pMsg->isMidDialog ());
588
588
}
589
- catch (OSS::Exception e)
589
+ catch (const OSS::Exception& e)
590
590
{
591
591
std::ostringstream msg;
592
592
msg << " JavaScript->C++ Exception: msgHdrGet - " << e.message ();
0 commit comments