diff options
author | Vitor Sousa <vitorsousasilva@gmail.com> | 2017-06-07 20:31:20 -0300 |
---|---|---|
committer | Vitor Sousa <vitorsousasilva@gmail.com> | 2017-06-07 20:31:20 -0300 |
commit | 6525e774dbd1972e72c249b0fa6c7cf096b2f25f (patch) | |
tree | 2777de49032cc488d83700c3eec4699d4489bbfc | |
parent | f6745fffa59231b3011752dc26c96fe239d3867e (diff) | |
download | efl-6525e774dbd1972e72c249b0fa6c7cf096b2f25f.tar.gz |
eina_mono: add more methods to eina.Error
-rw-r--r-- | src/bindings/mono/eina_mono/eina_error.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bindings/mono/eina_mono/eina_error.cs b/src/bindings/mono/eina_mono/eina_error.cs index f1592d1e3a..36d185c2b8 100644 --- a/src/bindings/mono/eina_mono/eina_error.cs +++ b/src/bindings/mono/eina_mono/eina_error.cs @@ -7,6 +7,11 @@ public struct Error { int code; + public string Message + { + get { return MsgGet(this); } + } + public static Error EFL_ERROR; public static Error NO_ERROR = new Error(0); @@ -70,5 +75,10 @@ public struct Error { Set(0); } + + public static Error Register(string msg) + { + return eina_error_msg_register(msg); + } } } |