path: root/src/examples
diff options
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
parentefl-mono: Fix autotools make check (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 'src/examples')
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
testFunc(-1, "abc");
- Eina.Error.RaiseIfOccurred();
+ Eina.Error.RaiseIfUnhandledException();
catch(Efl.EflException e)
@@ -58,7 +58,7 @@ public class ExampleEinaError01
testFunc(42, "abc");
- Eina.Error.RaiseIfOccurred();
+ Eina.Error.RaiseIfUnhandledException();
err = Eina.Error.Get();
WriteLine($"Really no error? {err == Eina.Error.NO_ERROR}.");