Exemplo n.º 1
0
        public static object thrown(object @value)
        {
                        #line 31 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx"
            if ((@value is global::haxe.Exception))
            {
                                #line 32 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx"
                return(((global::haxe.Exception)(((object)(@value)))).get_native());
            }
            else if ((@value is global::System.Exception))
            {
                                #line 34 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx"
                return(@value);
            }
            else
            {
                                #line 36 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx"
                global::haxe.ValueException e = new global::haxe.ValueException(@value, null, null);
                if (e.__ownStack)
                {
                                        #line 37 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx"
                    e.__skipStack++;
                }

                                #line 38 "C:\\HaxeToolkit\\haxe\\std\\cs\\_std\\haxe\\Exception.hx"
                return((object)(e));
            }
        }
Exemplo n.º 2
0
        public static object thrown(object @value)
        {
                        #line 31 "/opt/haxe/std/cs/_std/haxe/Exception.hx"
            if ((@value is global::haxe.Exception))
            {
                                #line 32 "/opt/haxe/std/cs/_std/haxe/Exception.hx"
                return(((global::haxe.Exception)(((object)(@value)))).get_native());
            }
            else if ((@value is global::System.Exception))
            {
                                #line 34 "/opt/haxe/std/cs/_std/haxe/Exception.hx"
                return(@value);
            }
            else
            {
                                #line 36 "/opt/haxe/std/cs/_std/haxe/Exception.hx"
                global::haxe.ValueException e = new global::haxe.ValueException(@value, null, null);
                if (e.__ownStack)
                {
                                        #line 37 "/opt/haxe/std/cs/_std/haxe/Exception.hx"
                    e.__skipStack++;
                }

                                #line 38 "/opt/haxe/std/cs/_std/haxe/Exception.hx"
                return((object)(e));
            }
        }
Exemplo n.º 3
0
        public static object thrown(object @value)
        {
            if ((@value is global::haxe.Exception))
            {
                return(((global::haxe.Exception)(((object)(@value)))).get_native());
            }
            else if ((@value is global::System.Exception))
            {
                return(@value);
            }
            else
            {
                global::haxe.ValueException e = new global::haxe.ValueException(@value, null, null);
                if (e.__ownStack)
                {
                    e.__skipStack++;
                }

                return((object)(e));
            }
        }