error handling

4 views
Skip to first unread message

raul

unread,
Aug 17, 2010, 1:46:20 PM8/17/10
to reops
Hi!, how can i manage error handling?? you know, like connection is
lost.
or can't stablish a connection, connetion time out etc.

turbidity

unread,
Aug 17, 2010, 2:00:56 PM8/17/10
to reops
Hi Raul,

The ReconnectionManager class handles that stuff. You can extend it
and get the net statuses off of that. Also, look for where REOPS uses
the ReconnectionManager and you could probably tie in there.

Nils

Raúl Uranga

unread,
Aug 17, 2010, 2:08:15 PM8/17/10
to re...@googlegroups.com
Hey Nils!
i'll look into it.
Thanks for the answer.

--
You received this message because you are subscribed to the Google Groups "reops" group.
To post to this group, send email to re...@googlegroups.com.
To unsubscribe from this group, send email to reops+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/reops?hl=en.




--
-----------------------------------------
Ing. Raúl Uranga
-----------------------------------------

Raúl Uranga

unread,
Aug 23, 2010, 11:06:51 PM8/23/10
to re...@googlegroups.com
Hi Neils!
i just extended the REOPS class but these methods never reached.

        override protected function _onCreateNetConnectionFault( event:NetConnectionFactoryEvent ):void
        {
            Log.error("onCreateNetConnectionFault");
            super._onCreateNetConnectionFault(event);
            dispatchEvent(new ConnectionErrorEvent(ConnectionErrorEvent.CONNECTION_FAIL));
        }
       
        override protected function _onReconnectAbandoned(event:Event):void
        {
            Log.error("onReconnectAbandoned");
            super._onReconnectAbandoned(event);
            dispatchEvent(new ConnectionErrorEvent(ConnectionErrorEvent.CONNECTION_FAIL));
        }

i miss something??

turbidity

unread,
Aug 25, 2010, 12:13:59 PM8/25/10
to reops
Raul, how are you trying to trigger these events? Are you
disconnecting from the Internet to trigger them?

Nils

On Aug 23, 9:06 pm, Raúl Uranga <rura...@gmail.com> wrote:
> Hi Neils!
> i just extended the REOPS class but these methods never reached.
>
>         override protected function _onCreateNetConnectionFault(
> event:NetConnectionFactoryEvent ):void
>         {
>             Log.error("onCreateNetConnectionFault");
>             super._onCreateNetConnectionFault(event);
>             dispatchEvent(new
> ConnectionErrorEvent(ConnectionErrorEvent.CONNECTION_FAIL));
>         }
>
>         override protected function _onReconnectAbandoned(event:Event):void
>         {
>             Log.error("onReconnectAbandoned");
>             super._onReconnectAbandoned(event);
>             dispatchEvent(new
> ConnectionErrorEvent(ConnectionErrorEvent.CONNECTION_FAIL));
>         }
>
> i miss something??
>
>
>
>
>
> On Tue, Aug 17, 2010 at 1:08 PM, Raúl Uranga <rura...@gmail.com> wrote:
> > Hey Nils!
> > i'll look into it.
> > Thanks for the answer.
>
> > On Tue, Aug 17, 2010 at 1:00 PM, turbidity <nils.thingv...@gmail.com>wrote:
>
> >> Hi Raul,
>
> >> The ReconnectionManager class handles that stuff. You can extend it
> >> and get the net statuses off of that. Also, look for where REOPS uses
> >> the ReconnectionManager and you could probably tie in there.
>
> >> Nils
>
> >> On Aug 17, 11:46 am, raul <rura...@gmail.com> wrote:
> >> > Hi!, how can i manage error handling?? you know, like connection is
> >> > lost.
> >> > or can't stablish a connection, connetion time out etc.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "reops" group.
> >> To post to this group, send email to re...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> reops+un...@googlegroups.com <reops%2Bunsu...@googlegroups.com>
> >> .

Raúl Uranga

unread,
Aug 25, 2010, 1:30:09 PM8/25/10
to re...@googlegroups.com
yep, and setting a non-existing stream name.

To unsubscribe from this group, send email to reops+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/reops?hl=en.

Reply all
Reply to author
Forward
0 new messages