summaryrefslogtreecommitdiff
path: root/src/examples/eina/EinaError01.cs
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-01-15 17:51:20 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-01-15 17:51:20 +0900
commite2589e3b48c4d05db198f7729708ac8bca6f42be (patch)
treefd26c306953a1cf97cd8fd1ea5b7267cbc51d509 /src/examples/eina/EinaError01.cs
parent130fe0bf7829d1bd8caae4df084c2975ff246a64 (diff)
efl-mono: Only raise exception for managed errors.
Summary: Previously, any unhandled Eina_Error would cause an exception to be thrown when the control returned to C#. This commit changes this behavior to only raise it when an exception went unhandled from a C# callback back to C, like in an event handler, for example. Test Plan: run tests Reviewers: segfaultxavi, Jaehyun_Cho, felipealmeida Reviewed By: Jaehyun_Cho Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7537
Diffstat (limited to '')
-rw-r--r--src/examples/eina/EinaError01.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/eina/EinaError01.cs b/src/examples/eina/EinaError01.cs
index 09062717c7..8fceaefb75 100644
--- a/src/examples/eina/EinaError01.cs
+++ b/src/examples/eina/EinaError01.cs
@@ -37,7 +37,7 @@ public class ExampleEinaError01
37 try 37 try
38 { 38 {
39 testFunc(-1, "abc"); 39 testFunc(-1, "abc");
40 Eina.Error.RaiseIfOccurred(); 40 Eina.Error.RaiseIfUnhandledException();
41 } 41 }
42 catch(Efl.EflException e) 42 catch(Efl.EflException e)
43 { 43 {
@@ -58,7 +58,7 @@ public class ExampleEinaError01
58 { 58 {
59 testFunc(42, "abc"); 59 testFunc(42, "abc");
60 60
61 Eina.Error.RaiseIfOccurred(); 61 Eina.Error.RaiseIfUnhandledException();
62 62
63 err = Eina.Error.Get(); 63 err = Eina.Error.Get();
64 WriteLine($"Really no error? {err == Eina.Error.NO_ERROR}."); 64 WriteLine($"Really no error? {err == Eina.Error.NO_ERROR}.");