Event handlers swallowing exceptions
Posted: 11 Feb 2011, 02:58
Hi there!
I've just started playing around with SFS, looks very nice.
One thing that stung me was that the exceptions thrown from event listeners get swallowed.
So something like this...
..left me scratching my head as to why I couldn't connect. It throws an InvalidCastException which never gets reported.
It would be nice if this was let through or logged.
[/code]
I've just started playing around with SFS, looks very nice.
One thing that stung me was that the exceptions thrown from event listeners get swallowed.
So something like this...
Code: Select all
public void OnConnection(BaseEvent e) {
print("Connected: " + (string)e.Params["success"] );
print("Logging in");
sfs.Send(new LoginRequest("test", "", "SimpleChat") );
}
It would be nice if this was let through or logged.
[/code]