Skip to content

Unhandled SecurityErrorEvent in connect-function #9

Open
@GoogleCodeExporter

Description

@GoogleCodeExporter
Hi guys,
thank you for your fantastic and absolute awesome work regarding Merapi and
all thats been build around it.

I noticed a tiny problem regarding the SecurityErrorEvent, which is thrown
by the Socket class if e.g. the JAVA side of Merapi is not running
properly. Problem of this SecurityErrorEvent is that it has to be handled
or an exception will be thrown ("Unhandled securityError"). 

Because of the class structure there is no possibility to handle that
SecurityErrorEvent from outside. To make sure my application is not
throwing an exception if Merapi is not running correctly, I just added an
listener for SecurityErrorEvent.SECURITY_ERROR to the Socket class which
will also be handled in the handleIOError-method (parameter was changed to
ErrorEvent to match all types of ErrorEvents).

Small change, and Merapi is running a tiny bit safer than before :)

Thanks for your time!
Regards, 
Matthias


Original issue reported on code.google.com by [email protected] on 4 Nov 2009 at 10:29

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions