Code clean for text csharp binder 25/266225/1
authorjoogab.yun <joogab.yun@samsung.com>
Tue, 9 Nov 2021 08:24:50 +0000 (17:24 +0900)
committerjoogab.yun <joogab.yun@samsung.com>
Tue, 9 Nov 2021 08:24:50 +0000 (17:24 +0900)
Change-Id: Ic5d1a0bf5c50caf049369661db0e5af9a01f0a4d

dali-csharp-binder/src/text-editor-wrap.cpp
dali-csharp-binder/src/text-field-wrap.cpp
dali-csharp-binder/src/text-label-wrap.cpp
dali-csharp-binder/src/text-utils-wrap.cpp

index 6c15bb6..463e8e9 100755 (executable)
@@ -648,27 +648,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextEditor_ScrollBy(void * jarg1, void *
   {
     try {
       Dali::Toolkit::DevelTextEditor::ScrollBy( *arg1 , *arg2);
-    }
-    catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition);
-      };
-    }
-    catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error");
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 }
 
@@ -725,23 +705,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextEditor_Property() {
   {
     try {
       result = (Dali::Toolkit::TextEditor::Property *)new Dali::Toolkit::TextEditor::Property();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -756,23 +720,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextEditor_Property(void * jarg1)
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -785,23 +733,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextEditor_InputStyle() {
   {
     try {
       result = (Dali::Toolkit::TextEditor::InputStyle *)new Dali::Toolkit::TextEditor::InputStyle();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -816,23 +748,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextEditor_InputStyle(void * jarg
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -845,23 +761,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_New() {
   {
     try {
       result = Dali::Toolkit::TextEditor::New();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = new Dali::Toolkit::TextEditor((const Dali::Toolkit::TextEditor &)result);
@@ -876,23 +776,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextEditor__SWIG_0() {
   {
     try {
       result = (Dali::Toolkit::TextEditor *)new Dali::Toolkit::TextEditor();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -913,23 +797,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextEditor__SWIG_1(void * jarg1) {
   {
     try {
       result = (Dali::Toolkit::TextEditor *)new Dali::Toolkit::TextEditor((Dali::Toolkit::TextEditor const &)*arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -952,23 +820,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_Assign(void * jarg1, void *
   {
     try {
       result = (Dali::Toolkit::TextEditor *) &(arg1)->operator =((Dali::Toolkit::TextEditor const &)*arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -983,23 +835,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextEditor(void * jarg1) {
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1020,23 +856,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_DownCast(void * jarg1) {
   {
     try {
       result = Dali::Toolkit::TextEditor::DownCast(arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = new Dali::Toolkit::TextEditor((const Dali::Toolkit::TextEditor &)result);
@@ -1053,23 +873,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_TextChangedSignal(void * ja
   {
     try {
       result = (Dali::Toolkit::TextEditor::TextChangedSignalType *) &(arg1)->TextChangedSignal();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1086,23 +890,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_InputStyleChangedSignal(voi
   {
     try {
       result = (Dali::Toolkit::TextEditor::InputStyleChangedSignalType *) &(arg1)->InputStyleChangedSignal();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1119,23 +907,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_AnchorClickedSignal(void *
   {
     try {
       result = (Dali::Toolkit::DevelTextEditor::AnchorClickedSignalType *)&Dali::Toolkit::DevelTextEditor::AnchorClickedSignal(*arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1152,23 +924,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_InputFilteredSignal(void *
   {
     try {
       result = (Dali::Toolkit::DevelTextEditor::InputFilteredSignalType *)&Dali::Toolkit::DevelTextEditor::InputFilteredSignal(*textEditor);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1183,27 +939,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextEditor_SelectWholeText(void * jarg1)
   {
     try {
       Dali::Toolkit::DevelTextEditor::SelectWholeText( *arg1 );
-    }
-    catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition);
-      };
-    }
-    catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error");
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 }
 
@@ -1214,27 +950,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextEditor_SelectText(void * pTextEditor
   {
     try {
       Dali::Toolkit::DevelTextEditor::SelectText( *textEditor, start, end );
-    }
-    catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition);
-      };
-    }
-    catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error");
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 }
 
@@ -1245,27 +961,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextEditor_SelectNone(void * jarg1) {
   {
     try {
       Dali::Toolkit::DevelTextEditor::SelectNone( *arg1 );
-    }
-    catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition);
-      };
-    }
-    catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error");
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 }
 
@@ -1326,23 +1022,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_TextEditorSignal_Empty(void * ja
   {
     try {
       result = (bool)Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextEditor_SP__Sg__Empty((Dali::Signal< void (Dali::Toolkit::TextEditor) > const *)arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = result;
@@ -1359,23 +1039,7 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_TextEditorSignal_GetConnectionC
   {
     try {
       result = Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextEditor_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Toolkit::TextEditor) > const *)arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (unsigned long)result;
@@ -1392,23 +1056,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextEditorSignal_Connect(void * jarg1, v
   {
     try {
       Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextEditor_SP__Sg__Connect(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1423,23 +1071,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextEditorSignal_Disconnect(void * jarg1
   {
     try {
       Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextEditor_SP__Sg__Disconnect(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1460,23 +1092,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextEditorSignal_Emit(void * jarg1, void
   {
     try {
       Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextEditor_SP__Sg__Emit(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1489,23 +1105,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextEditorSignal() {
   {
     try {
       result = (Dali::Signal< void (Dali::Toolkit::TextEditor) > *)new Dali::Signal< void (Dali::Toolkit::TextEditor) >();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1520,23 +1120,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextEditorSignal(void * jarg1) {
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1555,23 +1139,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_ScrollStateChangedSignal(vo
   {
     try {
       result = (Dali::Toolkit::TextEditor::ScrollStateChangedSignalType *) &arg1->ScrollStateChangedSignal();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1587,23 +1155,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_ScrollStateChangedSignal_Empty(v
   {
     try {
       result = (bool)Dali_Signal_void_TextEditor_Scroll_Type__Empty((Dali::Signal< void ( Dali::Toolkit::TextEditor, Dali::Toolkit::TextEditor::Scroll::Type ) > const *)arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = result;
@@ -1620,23 +1172,7 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_ScrollStateChangedSignal_GetCon
   {
     try {
       result = Dali_Signal_void_TextEditor_Scroll_Type__GetConnectionCount((Dali::Signal< void ( Dali::Toolkit::TextEditor, Dali::Toolkit::TextEditor::Scroll::Type ) > const *)arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (unsigned long)result;
@@ -1653,23 +1189,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ScrollStateChangedSignal_Connect(void *
   {
     try {
       Dali_Signal_void_TextEditor_Scroll_Type__Connect(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1684,23 +1204,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ScrollStateChangedSignal_Disconnect(void
   {
     try {
       Dali_Signal_void_TextEditor_Scroll_Type__Disconnect(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1723,23 +1227,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ScrollStateChangedSignal_Emit(void * jar
   {
     try {
       Dali_Signal_void_TextEditor_Scroll_Type__Emit(arg1,arg2,arg3);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1752,23 +1240,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ScrollStateChangedSignal() {
   {
     try {
       result = (Dali::Signal< void ( Dali::Toolkit::TextEditor, Dali::Toolkit::TextEditor::Scroll::Type ) > *)new Dali::Signal< void ( Dali::Toolkit::TextEditor, Dali::Toolkit::TextEditor::Scroll::Type ) >();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1783,23 +1255,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ScrollStateChangedSignal(void * j
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1836,19 +1292,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_GetInputMethodContext(void
   {
     try {
       result = Dali::Toolkit::DevelTextEditor::GetInputMethodContext(*arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
   jresult = new Dali::InputMethodContext((const Dali::InputMethodContext &)result);
   return jresult;
@@ -1879,23 +1323,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextEditor_MaxLengthReachedSignal(void
   {
     try {
       result = (Dali::Toolkit::DevelTextEditor::MaxLengthReachedSignalType *)&Dali::Toolkit::DevelTextEditor::MaxLengthReachedSignal(*arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
index d6249e1..b8c37a0 100755 (executable)
@@ -639,23 +639,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextField_Property() {
   {
     try {
       result = (Dali::Toolkit::TextField::Property *)new Dali::Toolkit::TextField::Property();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -670,23 +654,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextField_Property(void * jarg1)
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -699,23 +667,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextField_InputStyle() {
   {
     try {
       result = (Dali::Toolkit::TextField::InputStyle *)new Dali::Toolkit::TextField::InputStyle();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -730,23 +682,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextField_InputStyle(void * jarg1
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -759,23 +695,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_New() {
   {
     try {
       result = Dali::Toolkit::TextField::New();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = new Dali::Toolkit::TextField((const Dali::Toolkit::TextField &)result);
@@ -790,23 +710,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextField__SWIG_0() {
   {
     try {
       result = (Dali::Toolkit::TextField *)new Dali::Toolkit::TextField();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -827,23 +731,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextField__SWIG_1(void * jarg1) {
   {
     try {
       result = (Dali::Toolkit::TextField *)new Dali::Toolkit::TextField((Dali::Toolkit::TextField const &)*arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -866,23 +754,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_Assign(void * jarg1, void *
   {
     try {
       result = (Dali::Toolkit::TextField *) &(arg1)->operator =((Dali::Toolkit::TextField const &)*arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -897,23 +769,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextField(void * jarg1) {
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -934,23 +790,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_DownCast(void * jarg1) {
   {
     try {
       result = Dali::Toolkit::TextField::DownCast(arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = new Dali::Toolkit::TextField((const Dali::Toolkit::TextField &)result);
@@ -967,23 +807,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_TextChangedSignal(void * jar
   {
     try {
       result = (Dali::Toolkit::TextField::TextChangedSignalType *) &(arg1)->TextChangedSignal();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1015,23 +839,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_MaxLengthReachedSignal(void
   {
     try {
       result = (Dali::Toolkit::TextField::MaxLengthReachedSignalType *) &(arg1)->MaxLengthReachedSignal();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1048,23 +856,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_InputStyleChangedSignal(void
   {
     try {
       result = (Dali::Toolkit::TextField::InputStyleChangedSignalType *) &(arg1)->InputStyleChangedSignal();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1081,23 +873,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_AnchorClickedSignal(void * j
   {
     try {
       result = (Dali::Toolkit::DevelTextField::AnchorClickedSignalType *)&Dali::Toolkit::DevelTextField::AnchorClickedSignal(*arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1113,23 +889,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_InputFilteredSignal(void * p
   {
     try {
       result = (Dali::Toolkit::DevelTextField::InputFilteredSignalType *)&Dali::Toolkit::DevelTextField::InputFilteredSignal(*textField);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1143,27 +903,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextField_SelectWholeText(void * jarg1)
   {
     try {
       Dali::Toolkit::DevelTextField::SelectWholeText( *arg1 );
-    }
-    catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition);
-      };
-    }
-    catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error");
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 }
 
@@ -1174,27 +914,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextField_SelectText(void * pTextField,
   {
     try {
       Dali::Toolkit::DevelTextField::SelectText( *textField, start, end );
-    }
-    catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition);
-      };
-    }
-    catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error");
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 }
 
@@ -1205,27 +925,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextField_SelectNone(void * jarg1) {
   {
     try {
       Dali::Toolkit::DevelTextField::SelectNone( *arg1 );
-    }
-    catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
-      };
-    }
-    catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition);
-      };
-    }
-    catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error");
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 }
 
@@ -1285,23 +985,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_TextFieldSignal_Empty(void * jar
   {
     try {
       result = (bool)Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextField_SP__Sg__Empty((Dali::Signal< void (Dali::Toolkit::TextField) > const *)arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = result;
@@ -1318,23 +1002,7 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_TextFieldSignal_GetConnectionCo
   {
     try {
       result = Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextField_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Toolkit::TextField) > const *)arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (unsigned long)result;
@@ -1351,23 +1019,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextFieldSignal_Connect(void * jarg1, vo
   {
     try {
       Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextField_SP__Sg__Connect(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1382,23 +1034,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextFieldSignal_Disconnect(void * jarg1,
   {
     try {
       Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextField_SP__Sg__Disconnect(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1419,23 +1055,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextFieldSignal_Emit(void * jarg1, void
   {
     try {
       Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextField_SP__Sg__Emit(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1448,23 +1068,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextFieldSignal() {
   {
     try {
       result = (Dali::Signal< void (Dali::Toolkit::TextField) > *)new Dali::Signal< void (Dali::Toolkit::TextField) >();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -1479,23 +1083,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextFieldSignal(void * jarg1) {
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -1523,19 +1111,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextField_GetInputMethodContext(void *
   {
     try {
       result = Dali::Toolkit::DevelTextField::GetInputMethodContext(*arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
   jresult = new Dali::InputMethodContext((const Dali::InputMethodContext &)result);
   return jresult;
index f03db27..cc82c13 100755 (executable)
@@ -51,23 +51,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextLabel_AnchorClickedSignal(void * j
   {
     try {
       result = (Dali::Toolkit::DevelTextLabel::AnchorClickedSignalType *)&Dali::Toolkit::DevelTextLabel::AnchorClickedSignal(*arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -84,23 +68,7 @@ SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_TextLabelSignal_Empty(void * jar
   {
     try {
       result = (bool)Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextLabel_SP__Sg__Empty((Dali::Signal< void (Dali::Toolkit::TextLabel) > const *)arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = result;
@@ -117,23 +85,7 @@ SWIGEXPORT unsigned long SWIGSTDCALL CSharp_Dali_TextLabelSignal_GetConnectionCo
   {
     try {
       result = Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextLabel_SP__Sg__GetConnectionCount((Dali::Signal< void (Dali::Toolkit::TextLabel) > const *)arg1);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (unsigned long)result;
@@ -150,23 +102,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextLabelSignal_Connect(void * jarg1, vo
   {
     try {
       Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextLabel_SP__Sg__Connect(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -181,23 +117,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextLabelSignal_Disconnect(void * jarg1,
   {
     try {
       Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextLabel_SP__Sg__Disconnect(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -218,23 +138,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_TextLabelSignal_Emit(void * jarg1, void
   {
     try {
       Dali_Signal_Sl_void_Sp_Dali_Toolkit_TextLabel_SP__Sg__Emit(arg1,arg2);
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
@@ -247,23 +151,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_TextLabelSignal() {
   {
     try {
       result = (Dali::Signal< void (Dali::Toolkit::TextLabel) > *)new Dali::Signal< void (Dali::Toolkit::TextLabel) >();
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
-      };
-    }
+    } CALL_CATCH_EXCEPTION(0);
   }
 
   jresult = (void *)result;
@@ -278,23 +166,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_TextLabelSignal(void * jarg1) {
   {
     try {
       delete arg1;
-    } catch (std::out_of_range& e) {
-      {
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (std::exception& e) {
-      {
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
-      };
-    } catch (Dali::DaliException e) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
-      };
-    } catch (...) {
-      {
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
-      };
-    }
+    } CALL_CATCH_EXCEPTION();
   }
 
 }
index 6ade759..c4c74e2 100755 (executable)
@@ -30,19 +30,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_RendererParameters_0() {
   {\r
     try {\r
       result = (Dali::Toolkit::DevelText::RendererParameters *)new Dali::Toolkit::DevelText::RendererParameters();\r
-    } catch (std::out_of_range& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-      };\r
-    } catch (std::exception& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-      };\r
-    } catch (...) {\r
-      {\r
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-      };\r
-    }\r
+    } CALL_CATCH_EXCEPTION(0);\r
   }\r
   jresult = (void *)result;\r
   return jresult;\r
@@ -55,19 +43,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_RendererParameters(void * jarg1)
   {\r
     try {\r
       delete arg1;\r
-    } catch (std::out_of_range& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;\r
-      };\r
-    } catch (std::exception& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;\r
-      };\r
-    } catch (...) {\r
-      {\r
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;\r
-      };\r
-    }\r
+    } CALL_CATCH_EXCEPTION();\r
   }\r
 }\r
 \r
@@ -80,19 +56,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_RendererParameters_text_set(void * jarg1
   arg2 = &arg2_str;\r
   try {\r
     if (arg1) (arg1)->text = *arg2;\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION();\r
 }\r
 \r
 SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_text_get(void * jarg1) {\r
@@ -103,23 +67,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_text_get(void * jar
   arg1 = (Dali::Toolkit::DevelText::RendererParameters *)jarg1;\r
   try {\r
     result = (std::string *) & ((arg1)->text);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = SWIG_csharp_string_callback(result->c_str());\r
   return jresult;\r
 }\r
@@ -142,23 +90,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_horizontalAlignment
   arg1 = (Dali::Toolkit::DevelText::RendererParameters *)jarg1;\r
   try {\r
     result = (std::string *) & ((arg1)->horizontalAlignment);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = SWIG_csharp_string_callback(result->c_str());\r
   return jresult;\r
 }\r
@@ -181,23 +113,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_verticalAlignment_g
   arg1 = (Dali::Toolkit::DevelText::RendererParameters *)jarg1;\r
   try {\r
     result = (std::string *) & ((arg1)->verticalAlignment);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = SWIG_csharp_string_callback(result->c_str());\r
   return jresult;\r
 }\r
@@ -220,23 +136,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_fontFamily_get(void
   arg1 = (Dali::Toolkit::DevelText::RendererParameters *)jarg1;\r
   try {\r
     result = (std::string *) &((arg1)->fontFamily);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = SWIG_csharp_string_callback(result->c_str());\r
   return jresult;\r
 }\r
@@ -259,23 +159,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_fontWeight_get(void
   arg1 = (Dali::Toolkit::DevelText::RendererParameters *)jarg1;\r
   try {\r
     result = (std::string *) &((arg1)->fontWeight);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = SWIG_csharp_string_callback(result->c_str());\r
   return jresult;\r
 }\r
@@ -298,23 +182,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_fontWidth_get(void
   arg1 = (Dali::Toolkit::DevelText::RendererParameters *)jarg1;\r
   try {\r
     result = (std::string *) &((arg1)->fontWidth);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = SWIG_csharp_string_callback(result->c_str());\r
   return jresult;\r
 }\r
@@ -337,23 +205,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_fontSlant_get(void
   arg1 = (Dali::Toolkit::DevelText::RendererParameters *)jarg1;\r
   try {\r
     result = (std::string *) & ((arg1)->fontSlant);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = SWIG_csharp_string_callback(result->c_str());\r
   return jresult;\r
 }\r
@@ -376,23 +228,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_layout_get(void * j
   arg1 = (Dali::Toolkit::DevelText::RendererParameters *)jarg1;\r
   try {\r
     result = (std::string *) & ((arg1)->layout);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = SWIG_csharp_string_callback(result->c_str());\r
   return jresult;\r
 }\r
@@ -415,23 +251,7 @@ SWIGEXPORT char * SWIGSTDCALL CSharp_Dali_RendererParameters_circularAlignment_g
   arg1 = (Dali::Toolkit::DevelText::RendererParameters *)jarg1;\r
   try {\r
     result = (std::string *) & ((arg1)->circularAlignment);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = SWIG_csharp_string_callback(result->c_str());\r
   return jresult;\r
 }\r
@@ -682,19 +502,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_EmbeddedItemInfo_0() {
   {\r
     try {\r
       result = (Dali::Toolkit::DevelText::EmbeddedItemInfo *)new Dali::Toolkit::DevelText::EmbeddedItemInfo();\r
-    } catch (std::out_of_range& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-      };\r
-    } catch (std::exception& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-      };\r
-    } catch (...) {\r
-      {\r
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-      };\r
-    }\r
+    } CALL_CATCH_EXCEPTION(0);\r
   }\r
   jresult = (void *)result;\r
   return jresult;\r
@@ -707,19 +515,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_EmbeddedItemInfo(void * jarg1) {
   {\r
     try {\r
       delete arg1;\r
-    } catch (std::out_of_range& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;\r
-      };\r
-    } catch (std::exception& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;\r
-      };\r
-    } catch (...) {\r
-      {\r
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;\r
-      };\r
-    }\r
+    } CALL_CATCH_EXCEPTION();\r
   }\r
 }\r
 \r
@@ -870,19 +666,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ShadowParameters_0() {
   {\r
     try {\r
       result = (Dali::Toolkit::DevelText::ShadowParameters *)new Dali::Toolkit::DevelText::ShadowParameters();\r
-    } catch (std::out_of_range& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-      };\r
-    } catch (std::exception& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-      };\r
-    } catch (...) {\r
-      {\r
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-      };\r
-    }\r
+    } CALL_CATCH_EXCEPTION(0);\r
   }\r
   jresult = (void *)result;\r
   return jresult;\r
@@ -895,19 +679,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ShadowParameters(void * jarg1) {
   {\r
     try {\r
       delete arg1;\r
-    } catch (std::out_of_range& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;\r
-      };\r
-    } catch (std::exception& e) {\r
-      {\r
-        SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;\r
-      };\r
-    } catch (...) {\r
-      {\r
-        SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;\r
-      };\r
-    }\r
+    } CALL_CATCH_EXCEPTION();\r
   }\r
 }\r
 \r
@@ -1081,23 +853,7 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_TextUtils_GetLastCharacterIndex(void*
   try {\r
     Dali::Property::Array result1 = Dali::Toolkit::DevelText::GetLastCharacterIndex(*arg1);\r
     result = (Dali::Property::Array *)new Dali::Property::Array((Dali::Property::Array const &)result1);\r
-  } catch (std::out_of_range& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (std::exception& e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;\r
-    };\r
-  } catch (Dali::DaliException e) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;\r
-    };\r
-  } catch (...) {\r
-    {\r
-      SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;\r
-    };\r
-  }\r
+  } CALL_CATCH_EXCEPTION(0);\r
   jresult = (void *)result;\r
   return jresult;\r
 }\r